<p>It was a humanizing gesture by the writers. Hiroshi Sato, for all his villainy, is at least relatable. He was once an inherently good man who suffered a horrible tragedy when his wife was murdered. His anger now directed at benders in general, he committed some terrible crimes, not the least of which was nearly killing his own daughter. Prison can either harden or humble a person, and in his case, the writers chose the latter. Turning him into an unrepentent bastard would just rehash what had already be done with Zuko and Ozai, so we are given an admittedly forced scenario in which Hiroshi asks for forgiveness and Asami is reluctant to give it, and understandably so. His final appearance is one where he gives his life to save the city he once tried to overthrow, and saving the daughter he once tried to kill. Does this justify his previous actions? No. Does he redeem himself? That's up to you to decide.
</p>