Why do almost relationship breakups hurt so bad?

We were exclusively dating for almost a year. He cut things off with me suddenly. Now we went from talking throughout the day every day to not talking at all.

While we dated there were some red flags such as him not inviting me to events/party’s with his friends, our plans became last minute, him being emotionally unavailable, his ex recently moved to his town and started hanging out with his friends, he went from calling every day to only snap chatting me, and over hearing one of his friends ask him if he “hit up Ashley” when my name is not Ashley.
He told me we are exclusive and that I’m the only girl he talks to but my gut was telling me different.

I really did like him and I knew he liked me but I feel like I was used this whole time maybe until he got close again with his ex or until he found someone better. This is a terrible feeling. Has anyone gone through something similar? And if so, how did you get over it?
Why do almost relationship breakups hurt so bad?
Post Opinion