Not every employee in role X is as good as every other employee in role X. The better ones deserve higher pay, which creates an incentive for the others to up their game so that they, too, can earn more.
What enshrines bonuses from being free from these disclosures and regulations? Any law about pay could be extended to bonuses and bonus disparity becomes pay disparity (unless I'm missing some enshrined, unchangeable, legal exemption/difference between bonuses and pay).