the solution would be to raise the minimum wage in restaurants
the difference is customers will tip if they have a good meal, they dont tip when buying groceries
its not necessarily the employee or the restaurants choice on whether workers get tipped.
but yes to balance it out a waitress wage is usually less or minimum wage (usually 0 hour contract or part time) compared to a store clerk being slightly higher than minimum wage and more hours, they balance out
the issue is, servers dont claim their tips, which technically they should and be taxed on them, so they actually end up making more. if they taxed their tips like they are supposed to it would probably be more balanced