I'm well aware of the fact that this is an ethical dilemma and that simply by winning the birth lottery one isn't morally entitled to living at a certain place any more than everybody else is.
However, an argument can be made for the self-determination of groups as well, particularly their freedom of association (or lack thereof).
Then there are more pragmatic matters. You can't simply let people starve if they can't provide for themselves. Providing for everyone who chooses to stay at a place but can't actually afford to do so might just not be economically feasible.
Sure, over time these differentials will be evened out because people won't come to a place if it doesn't make economic sense to do so but simply opening all borders without taking possible consequences into account could lead to quite harsh outcomes.