OK, you see that your peer earns 2x more than you, then what? You automatically assume that you need to be paid the same?
it's another data point in a negotiation.
Why can't you just ask your peer? "Hey peer, what is your salary?"