Everyone cooking is a massive inefficiency, and yet paying for conventional restaurants is also uneconomical. Eating shelf-stable food is cheaper than cooking for most people, but only until the bad health effects catch up. Just like global warming, the market can only optimize over small time horizons without politically pricing in externalities.