It's not even just about salary negotiation; knowing you can walk away whenever you want to (and actually believing that you will if you decide to) gives you the freedom to take risks and just have more fun at your job in general.
I believe the only people that can truly justify their pay with any accurate metric are salespeople. They are paid entirely by commission and no sales means no income so there is no question about what they are paid. They do get additional perks like company cars, expensed meals, etc that fall outside the metrics. So 10 developers work on one product that draws in $2 million of revenue. How do you slice that up? by lines of code, hours worked, bugs squashed?
I would also say that large software companies pay developers more than small software companies. But I find this to be the case in almost every industry.
And you don't have to take any of the offers you get, you can do what ever you like with the information. But if you want to know what you're really worth this is the only true way.
Part of the disparity is likely negotiating tactics (I know one employee who got a nice raise after getting a competing offer), and the desire of the company to pay the least amount possible.
For me, another big part is that my job can't be directly attributed to a revenue stream (we're in the services industry). For those who's jobs are directly paid by contract with the client, they'll pay whatever the client will agree to. For those of us in "overhead", they'll pay as little as possible because it's difficult, if not impossible, to assign a dollar amount to the value that we bring to the company.
I would venture to guess that devs that work for software development business get paid more than those that are just in IT at a non-software company.