Remember when you calculate the cost of cooking that you have to add in the time spent grocery shopping, cooking, washing dishes, the cost of the electricity, gas, and water consumed, the time and cost of disposing of the trash, wear and tear on appliances, etc.
Dining out is essentially outsourcing these tasks.