Now, developer 1 has a rage-boner because developer 2 is being paid more but there's the reason of his/her desirable skills being utilised in the role. Yet, developer 1 doesn't see this qualifiable reason and just sees this as being unfair/unequal.
Pay transparency would only exacerbate the current problems around pay, not help alleviate them.