I never understood this since I worked for the US military for 22 years. Everyone knew exactly what everyone else made, including extra duty pay, housing allowances, bonuses, etc.
We never bitched about the pay someone else was making. It was just the way it was.