It's mainly #1. For 20 years now we've been hearing non-stop about how computer science is this magical major where anyone can sleepwalk out of college into a 150k job. Parents have been pushing their kids into it whether they are interested or not. Colleges have been taking advantage by pushing sub-par programs and boosting graduation rates. The end result is a large number of CS graduates who can't write a for loop in an interview (and will then loudly complain about how the interview process is unfair).
i just spoke with a chem prof who said that a lot of phd students in the degree sign up not because they want to do science but because of the salary bump the degree provides in industry.
i guess that is a natural dynamic in our economic/belief system in which all central planning must be inherently bad so we must always pay the on-demand price instead of the bulk price and every mis-timing mistake has to cost a lifetime of being wrong afterwards…