Why did he change is opinion on a relationship so quickly, what can I do about it?

Hi! Please be nice :) I am sad. Constructive advice on what to do and any insight please :)

I was dating someone, going super well. Great connection, spending a lot of time together, good communication. I texted him something snarky one day because I wasn't getting what I need from him (he was kinda moving into drunk booty-call behavior). Instead of asking me what's wrong, he just said "we can just be friends, I don't do mood shifts". Just like that. The next day we talked, I apologized and explained where I was coming from. That wasn't enough to change his opinion, he said he "doesn't see a relationship forming" because he thinks if its "this hard now, it will get even harder later"; and "he's dated girls that are either really happy or really angry and he doesn't want that". Like one thing happened and I apologized for that. Each time spent together is fun and light, then one minor thing happening and he is like "nah I'm good". I told him I don't agree it would necessarily get harder, I think we need to learn to communicate together. That did not change anything for him either. The way we left it is he said he would still want to spend time with me as he enjoys my company; I said I didn't want to spend time together if it means I already know it will end. Please help me understand this mindset. I feel like I messed it up, but also feel like it's unfair to drop someone so easily on something I see as understandable and pretty small- I was reacting to feeling insecure to him not putting in effort. It was an emotional reaction and I apologized for it. I really like him and know we had a great connection - how can you go from talking about having kids to "nope, bye". What does this mean

Why did he change is opinion on a relationship so quickly, what can I do about it?
Post Opinion