That happened to me. I suspect the experience requirement somehow changed during the interview process. So at the end of the multi-week interview process they realized they were looking for something different than what was listed on the position requirements. I'm not very upset about it. The time was wasted, sure. But I made some connections that may help later.
Re: The Secret Rules For Getting Hired
#121> "The whole team thought you were great. You were probably the strongest candidate overall, but we were looking for someone with experience in XYZ."