This is revealed in the final chapter of the novel when Scout, narrating as an adult, reflects on her childhood. She remembers Atticus telling her that he had "saved every penny" to pay for Tom's children's education, seeing it as his responsibility given the unfairness of Tom's situation.