The system is a disaster, with a lot of for profit schools slashing costs to maximize profits regardless of what the consequences are for the students. And that's just one of the many failures of the system.
Basically, the problem is that markets don't necessarily generate the best solutions from a social perspective, markets generate the solutions that create the largest profits. You have to some how get the markets to stop chasing profits, which is easier said than done.