The reason of course was $$$. The H1Bs cost approx. 1/3rd or 1/4th the cost of the comparable American in same job.
...
Also, companies are filled with bad management and they want employees they can treat like rented mules.
Some Non technical people hate technical people for some reason. I think it is jealousy or something. Also HR people suck in general.