The story
Amyl nitrites were originally sold in small glass ampoules wrapped in cloth. Recreational users would crush or "pop" these vials between their fingers to release their vapours, which is thought to be the origin of the slang term.
Etymology from Wiktionary, CC BY-SA 4.0.