Unfortunately in a lot of cases, this means they already know who they want to hire, but they're legally required to post the position publicly. Making the requirements for the position match the person they want to hire, allows them to screen out everyone else.
The first time this happened to me from the other side, when I was the one who was being selected for, it felt very awkward.