Because the job of a university isn't just to produce highly paid workers. It is to improve society through education. And sometimes people need to learn things that don't pay well, just for the sake of learning them.
People make fun of English and Art majors, but yet the majority of people consume art and writing as their primary activities outside of work (watching TV and movies).
The world would be a sad, boring place without those majors.
It looks like you ignored supply and demand.