The purpose of cooking is to make food more palatable, digestible,
nutritious, and safe to eat. It involves using heat to transform raw
ingredients into edible and enjoyable meals. Cooking also plays a vital
role in food safety by destroying harmful bacteria and pathogens.
Read on Wikipedia