Legally, I suppose that eating in a restaurant assumes that you'll pay the bill. Like getting in a taxi...ride in a taxi, pay the bill.
Should a crappy restaurant charge for their food? I'd say yes. They should go out of business too, but that's a different matter.