Shit man, you forgot someone else was just better suited for the job.
Even though you might be 97% perfect for the job, if they find 98% you’re done and it’s not your fault. Hell you were an excellent candidate for the job and just got unlucky enough to happen to be in the same pool as them.