Even in modern times, international air tickets are more expensive and worldwide wages lower than you imagine.
Passport control as immigration regulation/deterrent definitely rings true to me, and some countries see less need for it with richer travelers.