Before a company petitions for an H1-B on behalf of a foreign worker, they first have to apply for a labor certification showing that the worker's wage is close to the mean wage for that job title in that region.
Those mean wages are way, way off base though. When I first arrived in New York three years ago the mean wage provided by the certification was $45,000. I do not know a single developer on a salary that low.