We're talking about immigration, and more specifically how a State might approach it.
There are situations where the situation is so manifestly bad, that a prima facie approach to granting refugee status to asylum seekers (aka "opening the floodgates") from a specific location is the kind thing to do.
We've for instance seen countries do this for Syrians in 2015, Rohingya in 2017, Ukrainians in 2022.
But of course this is only viable (among other reasons, politically) for specific groups at specific times, whereas for other groups or at other times the case-by-case treatment of asylum requests has to be done again.
BTW, looking this up I was surprised to learn that the right to asylum initially did NOT cover people fleeing war, and some countries still do not consider it a valid reason to get a refugee status, among them the USA.
(And specifically the towns where most buildings have been destroyed and most people died or fled.)