Making a car requires a very large investment in capital that you only recoup if you make lots of cars, so buying a car from an established manufacturer is cheaper than making only one.
Making food requires less in outlay than it does to buy ready made food.
> where I am some of the cheaper restaurants can give me a decent meal for around the same as if I cooked it myself.
Ok, that's different from where I live. Here eating out would easily cost 3 to 4 times as much per person as it does to home-cook.
Also, you have to factor in the cost of transportation if you do not have a cheap restaurant nearby.
> They get their ingredients cheaper than I could and they make their money from the wine that I buy to go with it.
The restaurant slogan is 'they eat you poor, they drink you rich'.