If the company doesn't extend an offer, it's because I didn't show them the value I can deliver their organization. Either I didn't present myself as a teammate that makes the group stronger or I didn't present the technical skills to make them realize the talent I bring individually.
Maybe I'm lucky -- it's a low sample size.
But I suspect that we all can do better at interviewing and at selling ourselves. Traditionally, that's a weakness in engineers.
It's also why, when I'm interviewing, I try to remind applicants what I need: give me something, anything I can use to sell you to my manager -- to argue "yeah, this cool guy is the right business choice". Help me help you. If you can't, you won't get hired.