Please check what the majority of H1-Bs are hired for. It's a visa mainly used for cutting costs, not hiring ultra specialized people.
This is why in the modern world some sectors are always crying about "worker shortages" while asking always more migrant workers to come in - salaries are compressed as a result, and locals have no incentives to enter the branch.
Hence importing workers may be useful for needs that are limited in time and space (say, install a specialized foreign machinery in a power plant), but systematic importation leads to dequalification of the local workers, who flee the branch that has now low salaries.