Why would you have immigration in that scenario? Other countries would also lack people.
As for the why: because historically that has always been a solution to lacking specialized talent or simply not having enough hands to perform a massive task. You don't want to pay domestic labor, so bring in foreign labor. This time it's a general problem.