Because Putin sees that Trump is an alpha male, and that he too sees what a threat izlam is.
This is my thought. And also Trump acknowledges Putin’s leadership strength as well as Trump is more of a nationalist as is Putin. I think Putin is looking forward to sparring with another alpha nationalist and fighting the mutual enemy.