It's cultural, being a foreigner in Germany, you always get told to comply to rules. I couldn't care less about it and just shrug it off.
Honestly, some cities are really hostile to pedestrians with barely any crossings. I don't care if there are children around.