As far as actually teaching them things they would use on the job the STEM degree was no better than any random humanities degree. The only value they say they get out of the STEM degree as opposed to any other degree or no degree is that many employers use a STEM degree as a filter when hiring.
You can also see this whenever any thread about software interviewing comes up. People complain about having to cram memorizing a bunch of algorithms and data structures that companies like to ask about.
Those questions would be right at home on a CS class homework assignment. If the class material was something that working programmers actually had to use they would not need to cram for it when it comes up on interviews.
So yeah, a STEM degree is more valuable for a typical programming job than a humanities degree--but not for any good reason.
And yes, there is a good reason that it's more valuable, particularly for a recent grad. It shows that a prospective job candidate has already put forth some effort in the field (from working on class projects, to exams, to working with other students on larger programs)
I majored in comp sci but I'm not gonna sit around and pretend every aspect of culture and humanity can be solved by my engineering work...
The idea that you intentionally pay huge sums for something whose value shouldn't depend on how much it costs is ridiculous and only acceptable if paying those huge sums will also help you pay them back.