Border control prior to it was more focused on customs taxes, and in some countries, keeping undesirable races/religions out.
We have decided the latter is wrong, so instead of directly banning, say, Chinese or Jewish immigration, we replaced it with quotas on country of birth/origin.