They used drugs, at least at first, for the social bonds they created. It was something to do together, and because the drugs were illegal, it was a shared badge of rebellion.
There’s actually a lot to peel out of this. Context in sharing rites of rebellion, and the availability of opportunities to do so overlapping.