Prisons is an apt analogy. If you think otherwise you probably went to a uniquely good school or were high charisma and avoided bullying. But that's not everyone's experience.
Human children socialized just fine in the 100k years that we didn't have schools. The purpose of schools is to bring economies of scale to education. That's great, but if we can figure out a way to deliver education at scale without schools and all the negative side effects of schools, that'd be even better.