Compared to average workers, software engineers are specialists. H1B holders are often brighter than their citizen counterparts by at least one objective measure: advanced degrees holding. It's very hard to find US citizens with advanced degrees who can code well and understand computer science.