US Tech wants H1-B visa workers because they're basically indentured servants. Don't like your conditions? Salary? Too bad. Quit and get deported.
Tesla in Texas laid off ~2,600 US employees. In an odd coincidence, that same year they also got ~2,600 HI-B visa workers.