You do realize that most decent size US companies have presence in EU, Canada, India etc. and can easily shift open racks to those offices (and they actively do). As an example Apple has doubled it's head count in Cork Ireland a few times.
The why do they need H1Bs? They clearly want the best of both worlds. Cheap labor in their time zone. H1Bs obviously increase the skilled labor supply. If the laws of supply and demand are true, the price of labor will fall as supply rises.