Who are you to say that? Is the invisible hand prescriptive now? What if I value fair treatment over marginal nominal compensation? What if I don't know how much to ask for when I'm looking for work because I'm so underpaid that my perception of the market is fucked?
When companies say they can't afford to pay you x, they mean they don't want to pay you x.
Yes, sure, perhaps the employee was being cheated, but pay transparency is not going to fix that, that just insures everybody is being cheated evenly.
The cheating happens when the profits of the company are not distributed to the people that run it, but to the people who own it.
Over time, employees show their value or not. The higher value employees should be appropriately compensated for what they deliver, e.g. more market price discovery, but for rarer assets.
The danger of transparency is that you will discover the presumed market value difference, without seeing reasoning behind those differences. Which, honestly, will result in many angry people.
But your value should not be measured by how much somebody else is getting paid, but by how much another company is willing to pay you.