It is a little-known fact that man's cognitive development can be traced to the point when he started experimenting with alcoholic beverages.
With the invention of beer it was inevitable that cooking would be invented. Why else to get beaned with a frying pan for staggering back to the cave after having a few.