Doing well at interviews has low correlation with being good at the job, simple as that.
A given programmer might blaze through an interview task like a superstar, yet take two days to get started on it if it's an actual job assignment.
Everyone can put on their Gets Shit Done hat in an interview, in other words
That is why interviewers ask questions about previous job experiences and contact references.
That's true, but only because companies are bad at interviewing. It is possible to do much better than companies typically do at this. It's just a really hard skill to master, and involves more than just standardised testing.