Why is he still happy to see a girl who said she couldn't date him?

I told him I don't want a boyfriend. He was sad about it. After not seeing him for a couple of weeks, he was super happy to see me when I ran into him.
Why is he still happy to see a girl who said she couldn't date him?
Post Opinion