They are not. Schools are for government to turn us into zombies.
I think we should do away with schools. And two other things.
The only people for whom this wouldnt work are people in bullshit jobs and factory work. Because their work is designed to be done in different premises, which is what feeds the bureaucratic system.
And bullshit bureaucrats: you would have to get real work to do.