"How can you say there is a tech shortage? We just had mass layoffs because companies said we have too many employees"
Historically there have been tech shortages. I was an engineer involved in finding and interviewing candidates. The vast majority needed sponsorship, and the remainder were low quality as all the "good" engineers already had jobs at more prestigious companies than the old school fortune 500 company I worked for. We were also not on the West coast, which made it more difficult to find people willing to move to a smaller city. There were plenty of well qualified H1B candidates, and it was always a PITA to hire them because of the additional paperwork and cost to do the sponsorship, but for many many years there was nobody else, and we did pay competitive, but not top, wages.
Today, this might not be true with layoffs at Meta, Twitter, Amazon and others. It would probably be easier to find qualified engineers not requiring H1B.