I suppose a root cause of sorts is that for the first time in millennia there is a surplus of ambitious people with the means to pay for education, but a shortage of adequate warm bodies to teach. This in turn means top universities can provide a low quality course taught by outsourced teachers and know it will sell regardless.
I'm not sure how you fix it. There's only so many people who are smart and want to teach. It doesn't help that teaching doesn't pay well, but paying more only sort of helps: there would be a greater supply of teachers, but surely paying more can't make it cheaper.