In some cities I think the gratuity is mandatory, which means it is no longer a gratuity or a tip but part of the sales price or a tax.
Singapore comes to mind. Its added into the bill. I don’t know about others, but I always thought it odd that the cook is usually the one where the dinner is either good or bad. The waiter usually runs interference.