Using public transport without the correct ticket is a criminal offense (Straftat) in Germany. It's not just a matter of paying an increased fee (that's the 5 Euro) when caught.
The current minister of justice is considering to analyze if the law can be changed to make it just a misdemeanor (Ordnungwidrigkeit).