Because if a tech company wants to hire a foreigner, the visa process (regardless of skill^1) is basically worse than a coin toss. Which means companies have a much more limited pool of applicants. And let's be real, this country doesn't have nearly enough STEM professionals to meet demand.