For issue 1) you have a selection bias, and for issue 2) you have no way of knowing if that salary is for a hotshot with a great resume, 6+ years old and out of date, or anything else has changed within the company or field. And in a lot of cases the ranges are crazy large, almost uselessly so.
With a number in the actual job ad you know exactly where you're at: "SWE 2 @ 120k + 20% bonus + misc."
If you don't want that, go to a union, work for a government, or do something with an hourly wage.
I’m not sure what the relevance of this question is, but I presume there might be countries where real estate sale prices are not public record. I think this is the case even in the US state of Texas.
> About salaries you can get a good idea by talking to people and with sites like glassdoor. The ballpark range of salaries isn't such a secret.
The internet is helping a little, but forums and sites like levels.FYI are much better than Glassdoor I think, which sells to employers so I would not trust it.
> And, to elaborate on my previous comment, if a business were to advertise salaries, it'd be easy for a competitor to outbid them for employees they really want. So that system just wouldn't ever become the norm.
If every business had to do it, then everyone is similarly advantaged/disadvantaged. The internet is already helping. For example, I would welcome a Swedish style system.
About salaries you can get a good idea by talking to people and with sites like glassdoor. The ballpark range of salaries isn't such a secret.
And, to elaborate on my previous comment, if a business were to advertise salaries, it'd be easy for a competitor to outbid them for employees they really want. So that system just wouldn't ever become the norm.