It's a top down problem. The universities didn't invent it. For years, candidates have campaigned on "lrn2code" so much so that we make fun of it here. They weren't saying that to bring new perspectives or art to the discipline. They were saying it because tech jobs have basically become the only path to the middle class. Small wonder, then that enrollment situations are what they are.
I graduated from UC Berkeley's College of Engineering with a CS degree right as the recession hit. Even then, I could see the demographics of my classmates trending away from your typical nerds who just like being on the computer into guys who were just after a paycheck.
Point being, like everything, this is a systemic issue. Give people one path out and they'll take it. The US economy is basically just giant business conglomerates and tech companies. Myopic capitalism has led us to this.