It turns out that the market believes that building CRUD apps is more valuable and useful to society than whatever it is physics researchers do.
You are right that we don't have a Stem shortage. Instead we have a Technology shortage, and way too many people are going into these other fields that aren't actually very useful.