I've also been a person applying to jobs, where I know I'm fully qualified (usually because I already do the same thing in the same way for a competitor) and where I'm told "we think your a good culture fit, but we're worried about your technical abilities". I can't know exactly why they said that, but when I've showed working code they say their happy with, but I know I struggled on their brainteaser questions, it feels safe to infer.
So, I've seen qualified candidates turned away because they were "unqualified" (but they really weren't), from both sides of the table. I'm not claiming there is a huge surplus of engineering out there, but there is no real shortage either. There are enough engineers, just not enough employers willing to hire them.
Have you actually done hiring? The truth is that there really is a shortage of qualified applicants (at least, at existing prices). I've literally never met a fellow hiring manager who thought there was a surplus of good engineers.