Why did he tell me these things if he doesn’t have any feelings for me and I’m just a friend to him?

He told me that I’m perfect for him, he loves everything about me and everything about me is sexy to him. But he admitted that he doesn’t have feelings for me when I mentioned him not having feelings for me. Because I said “you don’t love me like that” and right away he said no
Why did he tell me these things if he doesn’t have any feelings for me and I’m just a friend to him?
Post Opinion