Parents wanted their kids to have phones in school to treat their (the parents') anxiety. It doesn't do anything to stop a shooter or any other problem, but you can blast off a bunch of texts to your kid if you're worried about them.
It's a shame that so many parents basically traded their kids' social development for relief from some temporary bad feelings.