You must not be in USA, isn't it? If that's the case, then the currency conversions come into play and you may very well earn less.
At least in Indian market what most developers make is just based on luck. Mostly on what stupid interview question you can answer, and how long you are in job, how many times you switched jobs etc.