Because the citizens and those that came before them have the history of the building up the country that has fostered a good standard of living, rights, environmental standards, etc.
It is unsurprising they feel they are more entitled to the benefits than those outside the country who did not. It is a complex situation but that is the general gist.