First because you set the benchmark, and your outstanding qualities become "requirements" for the candidates that follow to meet that benchmark.
Last because of recency bias, so whatever qualities you have are better recalled by interviewers.
Everyone else becomes somewhat forgettable.
(I would guess they mentioned a study about it, but it's been 10 years and I don't have the reference handy.)
In my experience as an interviewer, everyone in the middle does get somewhat mixed up together, especially when I had less than 5 minutes to scribble notes and reset between candidates.
But I would modify "first" and "last" to "towards the start" and "towards the end" e.g., I will (subconsciously) more easily benchmark candidates against a very strong "second interview of the day" than against a lackluster "very first candidate", if that makes sense.
Said differently, whoever is the first candidate that hits it out of the park becomes the benchmark. And whoever happens to be the best relatively strong candidate is more easily recalled than other relatively strong candidates.
Thank you for coming to my TED talk