After what we have learned the last 30-50 years from cognitive sciences one has to wonder what schools are actually for, nowadays. There are most certainly not optimized for "learning" by any means. Imho to put it blatantly schools are reduced to be a effective stronghold for indoctrination. They justify their power by using "science, technology, art, literature, history, social community, cultural exchange ...". Of course sheer by its power and scope we certainly "learn" something there. And you also happen to find great teachers in that system but its certainly not its main purpose.
Going back historically, schools still remain inherently (and shockingly so) medieval institutions. Interestingly "school" originally stems from the greek word of σχολή (/skʰo.lɛ̌ː/) which simply means "free time, leisure" which got hijacked by the church with "monastic schools" and today "school" means quite the opposite.
Throughout its (western) history with changing society they were succesful adaptions made (Prussian system, Humboldt's Ideal, Montessori pedagogy) skyrocketing literacy, expolding number of scientists etc.
But today the educational system is massively outpaced by the societal changes and by failing simply regresses to its medieval core of indoctrination ("preparation for the labor market").
No scientific literacy (aka critical thinking, controversial debates), no "learning" grounded on cognitive sciences, no hearing and tending to the needs of our young which they can perfectly articulate.