Earlier quoted context omitted.
[flagged]
People immigrated there because it was needed at the time. What was good centuries ago may not apply today. Yes permanent residents in the US/Iceland/Australia/Spain/whatever should get priority over temporary visa holders in their respective country. This is the whole point of countries.
And no, permanent residents do not have anything about them that is inherently more deserving of anything. That is in no way what a country is for.
A country provides social services to people in exchange for some control, so as to keep order. If you give control, you get services.
Land borders are not an important aspect of a country’s decision of who to provide services to, who that country can provide order to is.