Something else that was abused
The H1-B was supposed to allow companies to bring in essential workers to do jobs that couldn't be filled by US workers, but instead as usual it has been abused by companies in order to cut their costs by bringing in cheap overseas workers to replace more expensive US employees. They are not filling positions that can't be filled, they are filling positions that can be filled far cheaper and getting their what will soon be predecessors to train them.