Getting dumped

So my boyfriends recently broken up with me because he fell out of love with me yet he still has feelings? I just don't understand, we were so happy but he told me that he doesn't think we will be able to cope being together as we will be going to different universities. So because we basically came to a conclusion that our friendship was much stronger than the actual relationship we've decided to stay friends and it feels right but he's gone away today for two weeks and I feel so broken and alone but I thought I was over him and I'm pretty depressed over the whole situation just don't know what I did wrong 💔