Putin said this so the Democrats can't use him to criticize Trump. Trump will just say he's endorsed by Putin. Undoubtedly, Putin likes Trump.
And, amazingly, the far right thinks it's a positive when Trump says that a mass murderer endorses him. "Anything you say, we automatically believe, Boss!"