After he gets imprisoned, Tyrion realizes that being good is a waste of time. When Jaime frees him, he learns of how his father hurt his innocent wife by calling her a whore, Tyrion's anger skyrockets, and he admits to killing Joffrey, showing that he hated his nephew.