The problem is that value of the credential is now worth more (to most people) than the value of the learning/knowledge. So universities adapted to the that model. Its more profitable and university presidents can now earn millions of dollars, further intrenching the problem as it now attracts exactly the kind of people into those positions who only care about money (and themselves).
The true blame for this situation, (IMHO), are the employers across the economy who require applicants have 'university degrees' for jobs that in no way need those skillsets. Bullshit requirements then led to the demand for bullshit degrees which the universities changed to supply.