I was just asking myself how old the concept of buying food that has been prepared by the occupant of the place you went to is. I'm curious. There were markets as old as time where you can of course buy your fruits vegetables and animals from. So then there were also pastries, ready to eat dishes that you'd take to your family.
So when did people start sitting down? Who said "Hey, you could take this large pie to your family, or I could just cut a piece for you, serve it on a plate with a beverage, and you could just pay for your one time experience"? Which would lead to hot foods and larger gatherings. If that's even the way it evolved of course. I have no idea.