Guy lashed out after I told him to find someone else?

I told a guy who likes me that he needs to find someone who can be there for him. We live almost 2 hours apart & it won't work. He lashed out acting like he didn't like me only to calm down & say his feeling hasn't changed. He is confusing me because now he is going back to like nothing ever happened. My guess he was hurt? A lot of things he was saying and his attitude changed when I told him that.

Updates
1 y
Just to be clear. We were never in a relationship. And I told him the truth because it wouldn't have been right to make him think there was a real chance between us. I told him 2 weeks after he told me how he felt. in my opinion it's not right to lie to someone to make them feel better. We have been friends for months and I really do care about him and would give him a chance but the distance and the fact we both have children make it impossible for me anyways.
Guy lashed out after I told him to find someone else?
Post Opinion