Which is fine. The problem is the imbalance of information and therefore bargaining power between workers and employers. With this information salary negotiation is like playing poker with your cards open so only thing it does is depress wages.
That's not a problem for the public sector because both sides can see it and there is no real negotiation (you still save time/money by not having to go thought the interview process to figure out your potential compensation).