Competition might be necessary to fix this, but it's certainly not sufficient. The restaurant industry is competitive, but according to the Department of Labor [1] "nearly 84 percent of full-service restaurants it investigated between 2010 and 2012 had violated labor standards, including but not limited to tip violations".
[1] https://nyti.ms/2GjqIyu