You would cook a meal because you like cooking, or you are hungry, or you are entertaining guests.