The nominal reason for h1-b to be a thing is for cases where you can't find someone locally with the skills you need. How exactly do you define "shortage" to be unrelated to that?
Because those H1B requirements are pro-forma and the visa itself gives the company access to another easily controlled and underpaid immigrant to drive down wages.
That’s not how they’re used. We immigrants get hired because companies get away with paying us less.
There’s a shortage of people willing to work for low wages.
So there is no labour shortage, there is a local labour shortage.