The company is free to tailor the minimum requirements to its liking however it must be able to persuade the government that the job cannot be done without these requirements and a foreigner meets them. If you could just require a Nobel Prize in Physics and 50 years of experience for your PM or JS-jockey job then we would not be seeing articles like this. So I don't see why would you be pointing it out.
>and companies have lawyers who are good at following the text
Apparently not very good lawyers at Apple: https://www.justice.gov/d9/2023-11/ier-apple_settlement_agre...
Or Meta: https://www.justice.gov/archives/opa/pr/justice-labor-depart...
Just a couple of recent high-profile busts. The problem is not "good lawyers" but the fact that the only punishment for breaking the law is a pittance of a settlement.