Confused..

So I've been with my boyfriend for two years now and we are so close and have been so in love but now he broke up with me and said he just needs time for himself and just wants to be friends and now it's like we've never been together and we are just casual and I just hate it so much. I've never loved someone like I've loved him and it just hurts that he can act like nothing's ever happened and just act like a casual friend to me. I'm trying to be understanding and let him figure himself out but it just hurts