Everything Happens for a Reason
Losing friends can be a good thing.
It can mean that you've grown, that they've changed and you're no longer aligned, and that you don't bring each other the same kind of fun or happiness.
The best thing to do is accept it, acknowledge and appreciate the past and move on.