I thought he liked me?

We met online, we both singles, talk a lot of stuff and keep the conversation going everyday for months. It was fun to talk with him, we have the same interest and perspective on some points. He asked me to share the song playlist, listened to each other's, he told me a lot about his daily life and little things, jokes, asking me advice and he told me that he grateful to meet someone like me. He used to texted me first everyday and things between us are going well. We never talk about what kind of relationship we are, but I thought he liked me. But a few days later, he said he got a girlfriend. I don't know why, but why do I feel a little bit hurt?

I thought he liked me?
Post Opinion