It’s a salary database and it’s anonymized. How is this harming the public? A worker is still free to accept or reject any offer they want. Companies aren’t colluding, they are reporting. Nothing stopping companies from paying more or less than what other people are paying.
Because when one side of the table has access to information (especially such detailed and important data such as this) it shifts the negotiating advantage strongly in favor of the companies.