Hi there!
Bacteria can grow in the food, and eating food with bacteria is harmful to the health, causing food poisoning. Some of those bacteria are Campylobacter jejuni, Salmonella or Escherichia Coli.
To cook foods at a high enough temperature is important because the heat kills the bacteria, and makes food safe to eat without the risk of diseases.