I now wonder if the same thing happened to me. Within the niche of that job I was pretty objectively the highest qualified candidate in the world at the time. Did really well in interviews. Did not get the job. A decade later, though, I'm actually thankful I didn't get it. Blessing in disguise.