Why should a developer working 40 hours a week earn more than say someone cleaning toilets 40 hours a week? Both are investing 40 hours of their time, both add value worth 40 hours of work. Actually cleaning toilets seems a way less pleasant job and should be paid better. On the other hand the developer spend more time in education not getting paid and has to recapture this investment. They would probably not end up with the exact same wages but I see no justification for enormous differences.
The supply and demand situation is of course very different allowing developers to ask for high wages and on the other hand allows forcing the toilet cleaner to work for a low wage but this does by no means make this fair.