I encourage everyone to read how Economists think about education: Spencer’s Job Market Signaling paper.
https://www.sfu.ca/~allen/Spence.pdf
It’s not just about learning skills, but it’s a natural and rational mechanism to filter talents.