feel better man, you probably weren't in the running unless you already had an amazing resume, top-tier schools, connections, etc. They have 10,000x applicants for positions, they are probably hard filtering on harvard, MIT, Stanford, etc. They are very far from "we just need someone who is good enough at coding". Its more like harvard where they have 3x total open slots of people with 4.0, perfect SAT/ACT, and extra curriculars. That's why its down to "culture fit" and "gut feel" (e.g. connections).
Now if you already have those things (top-tier school, connections, world-class experience on resume), you can probably still and a cushy overpaid position somewhere, just look for somewhere else they are lighting money on fire.