Why is this gay guy flirting with me, a straight girl?

Anonymous
A few months ago I met this sweet and nice guy. He came up to me and initiated the converstation. At first I thought he was flirting with me because he came up to me like that and also started asking questions like what kind of boys I liked, etc. Then that same day, he said something in a way that was very 'gay' which made me think that maybe he was gay. But as time went on we kept in touch and he kept flirting by making intense eye contact, staring at me when I'm not looking, touching me, putting his head on my shoulder and in my lap, teasing, etc. Which made me forget my initial impression of him. Even my friends said it was obvious he liked me. But now, just a few days ago, we had a conversation about homosexuality and he said he was gay. I was not that surprised because I always had that thought in the back of my mind that he could still be gay. Only now I'm so confused. Why would he flirt like that? It's a good thing I didn't fall for him, but still, it's playing with a girl's feelings. (He also didn't stop with the flirtation after that conversation)
Why is this gay guy flirting with me, a straight girl?
7 Opinion