There is only one reason Trump went to Mexico:  he is losing the election.  So he made a hasty trip down there for political theater.

And guess what?  After the visit, he is still going to lose the election.  This stunt won't fool anyone except the same people who would vote for him if he shot someone on 5th avenue.  

Clinton met with Peña Nieto in 2014, and her campaign keeps in touch with his administration.  

Peña Nieto really wanted Clinton to show up.  Peña Nieto thought Clinton would help his declining poll numbers in Mexico by refuting Trump's rhetoric.   Of course, he had to ask both of them.  He is still hoping Clinton will visit.  

If Clinton visits, it will be closer to the election.  This will help increase the American Hispanic vote turnout for Clinton in November.  Late October is the smart time to show up.  

The only thing people will remember about Trump's low energy visit to Mexico is that he didn't have the guts to tell Peña Nieto to pay for the wall.