In the US, different states have different laws regarding customers who leave without paying the bill, aka "Dine and Dash."
Some states allow for a restaurant to dock a server's pay, when a customer leaves without paying. However, I dont understand how a server is responsible for the actions of a customer. I cant think of any reason why a server would be considered negligent or how they would be in any way responsible for a customer walking out while they were doing their job, like paying attention to different customers, getting food, or any of the many other reasons the server would not be watching their customers.
So I am asking, what is the legal basis for a law allowing restaurants to make servers pay for dine and dashers?