The US is not producing enough engineers to keep up with demand. Add to that the fact that many software engineers drop out and move to information systems because they can't deal with the rigorous math.
If you are. not a paid member, you can watch the video on YouTube here:
The H1B program allows the US to bring in tech workers to take these programming jobs allowing native-citizens with computer science degrees to get jobs in defense where a security clearance is required.