Margins in many businesses are razor thin in Germany. Which is the reason Walmart and others stopped doing business in Germany. For many businesses 1-2% transaction cost is the difference between success and failure.
But yes tax avoidance is a huge problem in restaurants in Germany.