If you are a Central American Country who is not a friend of the USA, it’s a perfectly logical decision on their part, empty out all your worst prisoners and insane people and tell them they are free to go, just leave for the USA, you will be accepted there.
It’s cheaper than housing them in those countries and it gets rid of the undesirables.
thats what cuba did with mariel boatlift in 1980 miami was inundated with crime and murder
https://www.nytimes.com/2017/01/14/us/cuba-us-migrants.html