A loud minority of parents agitated for it enough that lots of schools caved. Educators don’t want phones in classrooms.
Much more likely the case, the phone makes a sound, vibration or otherwise, and gives away the child's location to a would be shooter.