> The only reason it's not public, is because an inefficient labour market helps the employers underpay their employees.
If that were true, why wouldn't everyone voluntarily post their salaries publicly? For that matter, why won't you?
It's already protected for employees to share their salaries. If the only reason salaries are private is to help employers, wouldn't we expect many people to share their salaries voluntarily?