I'm not a huge fan of fancy titles either. What I meant to say is that the salary should reflect the contribution. So if two person contribute the same value to the company, they should have same compensations.
Which is not necessary tied to titles, right.
The only entity which benefits from salary secrecy is the employer itself.
I misunderstood the meaning from your original posting - I thought you meant that the CTO should get paid the same as a junior programmer should get paid the same as a janitor.
Someone will benefit from that arrangement, but it won't be the majority of employees.