What are the implications of reselling food? Is it legal?

What would happen, for example, if in the US I buy Little Caesar's pizzas (with no delivery service) and sell them on another place? What are the implications of restaurant delivery services as GrubHub or OrderUp?