Bacteria is a living organism that requires food to survive. Some food is more prone than others to bacterial growth.
Moist protein-rich foods, such as meat, milk, eggs, and fish, are potentially hazardous, but they are not the only ones. Plant-based cooked meals are also potentially hazardous foods, if not correctly handled.