Freddie DeBoer has written about this repeatedly, including in his latest post:
https://freddiedeboer.substack.com/p/education-week-review-o...
Briefly: many educational institutions were not designed to increase equality, but to protect professions by acting as gatekeepers through a process of cartelization.