If nobody had kitchens, there would be cafeterias where you could go to eat (most people would get a monthly pass). Meals there would be much cheaper than anything you could cook at home, because of economy of scales.
What about people who want to cook in their kitchen and eat with their family? I think you may be looking at this too logically, not taking into account the emotional part of preparing and eating food.