If the petri dish is, in fact, sterile, then it is to prevent other bacteria and external factors from interfering with the growth of the bacteria. It allows for an optimum speed of growth and amount of growth without other factors impeding on their growth.