I suspect this is not the first time Trump met or spoke to the President of Syria. He probably knows the Syrian leader has a pretty good sense of humor and is accustomed to spontaneous behavior from Americans.
I doubt if President Trump would greet Kim Jung Un of North Korea that way. It’s too easy to make someone like Kim lose face in front of his countrymen.
"Hey, Fatso!"
Regards,