if they are not sterile they probably would already contain various bacteria. So you would end up culturing the bacteria you intend to culture and a whole bunch of other bacteria as well.
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.