Question: What is Purgatory?
Answer:Purgatory is a state in which those suffer for a time who die guilty of venial sins, or without having satisfied for the punishment due to their sins.
Note the part I underlined. The Church doesn't say that everyone goes through Purgatory. There are exceptions. In the case of the "good thief" we can surmise that he suffered enough temporal punishment due his sins.