same could be said of famines like the one in China or Soviet Union or ones in Africa: they simply needed to pay up for food, if they were really that hungry
your logic erases nuance of the US labor market and infinity of specializations and niches, on top or large regional differences in labor market.
let's just say that nurses will never be paid on par with software engineers just because it is different specialty, and it is stupid to force nurses to compete with IT for visas