One of the factors is: heat
Actually, heat is the number one concern in this matter.
In order to reproduce, bacteria need to live in an environment that has a certain degree of warmth. This is why people stored their meat on fridge, because it create a low temperature environment that can't be sustained by the Bacteria