What makes you confident about that? I only see evidence to the contrary. Having workers able to see what other jobs are paying might encourage them to make moves to increase compensation.
Hiding the numbers makes it less obvious if one is being taken advantage of, which is a reason employers have made it taboo to discuss pay.