That may have been a knock on religion rather than a pedo issue.
However, school systems also try and avoid teachers and kids being alone together. A pedo in a room of 30 kids isn’t likely to do anything.