Después de que todos se fueran, se quedó sin amigos.

Why is it conjugated as subjunctive?

Probably from personal habit, on the part of the speaker. Indicative would work just as fine in this context.