Yeah this might come back to bite them in the arse in the future but from a political point of view it seems unfeasible to do otherwise.
And even then, applying while under H-1B puts you in a difficult position. You don't have that much choice, as your denial might result being out of status. Not to mention that companies might take advantage from it.
After 60 days they need to leave. They MAY get caught, but the USA doesn't actively enforce overstayers on status.
You'll run into problems when you want to re-enter the USA.
And if you wish to stay, you cannot find a (legal) job because your employer needs to fill in an I-9, which will reveal the fact that you are out of status.
obviously if you come to work to foreign country and your visa is tied to job it's only natural it will be void after they fire you and it doesn't mean you can stay as long as you want, I was also kicked out from foreign country after my former employer went extra length to make my life difficult when moving to new company, had to leave country, to get new visa, so I could start new job
Sources: Bureau of Labor Statistics https://www.bls.gov/charts/employment-situation/civilian-lab...