The economy is bad in Mexico so they don't have that many people trying to get in. If Mexico were as wealthy as the US, and the US as poor as Mexico, they would have the same problem we do.
Frankly, antarctica does not have much of an immigration problem either, and the borders there are wide open.