A lot of cooking has been automated, though. Consider an industrial bakery, or frozen pizza factory, or your favorite candy. We just don't normally call automated food production "cooking".
But those aren't cooking, they're pastry, basically pastry, and confection (aka pastry), respectively. You literally attend a different program in culinary academy to learn these skills. Show me any place that mass produces actual meals and I guarantee you it looks like this photo of SkyChef I found online:
Granted, and I suppose the nature of the craft does inherently lend itself to better automation. (For anyone who doesn't know, much of what makes pastries good boils down to precise measurements and temperature controls, which even unsophisticated machines can beat human chefs on.)