https://transparentcalifornia.com/ All of my coworkers, many friends and family members, and I all have detailed salary information easily searchable. It has not caused any conflicts in my life.
That's less the case when you're constantly challenged with clean-sheet exercises where every single person will produce a different outcome. It doesn't even have to be a super senior job - think of someone writing newsletters. That channel can easily lead to 5% or more of total revenue, and different people will definitely produce different outcomes (just the subject line alone will have an impact). Why pay different people the same rate if their work leads to vastly different revenue?