Answer:
Atticus is standing up for Tom to prove to Maycomb and his children that just because Tom is black, it gives them white folks no reason to disrespect the black. Atticus is setting an example. Plus, he is upholding his own moral values, so at least he isn't hypocritical.