It happened to me, I got contacted for an offer (I was working in a niche industry area).
They had above 50 candidates with the required qualifications. After two online interview they invited me for a onsite interview. It's in another country so they are paying for the flights tickets and hotel.
I'm onsite for the day, I have interviews, visit of the place, the museum, I'm invited for lunch there, more interviews in the afternoon.
In the 3 candidates that were there, one was a guy who already candidated for the exact same opening 5 years ago, did not got selected for this job at the time but they did not want him to go so they hired him on another position until the main position opens again.
So without any surprises, he got selected.
