Why did he say "I'm not for dating nor flirting"?

Okay, so here's the thing, we just met a few days ago. And we're starting to become very good friends, but he's also told me not to get too attached. I agreed and went along with all that he said. After he helped me out in something personal we've started to become good friends. But 2 days ago, out of nowhere, he was like "I'm not for dating nor flirting". I forgot what I said though, before he said that. But I don't know why he said that though, I don't know what kind of vibe I gave him..
Why did he say "I'm not for dating nor flirting"?
Post Opinion