Confused?

I have a huge crush on this guy at my college but he has a girlfriend. Whenever I see him around he flirts with me. I told him I liked him. He said that I'm pretty but he doesn't look at other girls. If that's true, then why does he flirt with me?