I don't know how much, if any, we're paying to help Mexico secure its southern border. But if it's secure (which it obviously isn't yet) that would eliminate Central Americans from crossing into our border.
That's a much shorter and defensible border than our huge one with Mexico. Why wouldn't it be in our interest to stop the flow even further south?
Because it's really in America's interest to secure AMERICA's border.