Tech isn't a zero sum game, it's a growth market. If some H-1B talent helps grow a company faster, then they can increase their own citizen employee count faster.
That tracks only when it’s not taking 6+ months to find a stable job. It’s not really a growth market right now, and anyone who is on the hiring end/looking for a job can attest.