There are many reasons that friends distance themselves from you, maybe your repeatedly behave with them in a bad manner, you keep hurting them with your words, or you don’t give them the expected support. On the other side, they may distance themselves from you, because they were not true friends, and they just knew you for a personal reason, and when it ended they left you.