Why was colonial cooking important in colonial times?

The direct answer to the question you have asked is that it allowed the colonials to eat cooked food. If you meant something else, you might like to re-ask the question so that it asks what you actually want to know.
My answer will be, to cook everything to keep healthy. In another words to kill the bacteria and germs.