Same function as the laws about when you can mow in Germany, simply at a sub municipal level.
The level to which German society proscribes behavior top down with the law simply wouldn’t be tolerated across the spectrum for the simple reason no one would agree what the rules should be, even if they share the European idea that everyone else should follow the rules they personally support.