If everyone was treated fair Boo Radley wouldn't be hated and not want in the town. He would be accepted and that would make him feel good too.
The trial of Tom Robinson is also happening in the book. Atticus knows he probably won't be able to win even if he clearly didn't rape her because he is a black man and they don't treat them fairly.