I've worked in high-energy or high-risk systems nearly all of my career. There is such a thing as managed risk. The school didn't tell the family that they couldn't do the experiment. Instead, they owned up to the fact that the school didn't know how to manage this particular situation's risks correctly, and instead deferred to someone who did. That's a totally rational and reasonable response.
Growing bacteria in agar is something that was completely de rigueur in elementary school when I was in elementary school in the 1980s. If this is a high-risk activity, I'm sure you'll have no problem finding some account of it every having done any damage in the conservatively hundreds of thousands of times it was done.
The difference between petri dishes with what was often a specified bacteria/mold and the bacteria from a person's mouth should be self-evident.
As brandmeyer pointed out, the girl may have had bacteria while showing no sign of having an illness (example given was strep throat). Having a small amount of the bacteria and then raising a colony of it could pose some risk of getting others sick.
There are industry-standard protocols for performing this kind of work, and the school has a clear responsibility to ensure they are followed.