What could be the reason why he does this?

I told my guyfriend 2 years ago that I like him and he told me I shouldn't like him. I respected his decision and continued being friends with him. At first it was hard accepting that he rejected me then eventually I was okay with it. Since that day I haven't mentioned it again. So from time to time he likes to tease me. He likes calling me pet names out the blue and then act like he didn't, I ignored his behavior. The one that takes the cup is whenever I bid him goodbye he tells me he loves me and he expects me to reply to that... why?

I don't have any emotions for him but he's acting strange... I feel like I boosted his ego

What could be the reason why he does this?
Post Opinion