While I get the point of your analogy, the one flaw with it would be the restaurant could stop you from doing so on the grounds that giving your meal to another potential paying customer is harming his sales and business and he would be legally within his rights to stop you and even remove you from his premisses. 
No flaw, when you take guests into a restaurant you are giving your meals to other people, if a starving person entered the restaurant and begged for food, it would take a real bastard to refuse them, and it's not something that would happen every day so the owner will not be bankrupted by this action.
Licensing software is a scam.