The story
UK late-20th century. The Oxford Dictionary of Modern Slang says "first recorded in 1990 but in use earlier". From John or Johnny as a personified idea. Compare Johnny Canuck (“Canadian”), Johnny Crapaud (“Frenchman”), Johnny Reb (“Confederate American”).
Etymology from Wiktionary, CC BY-SA 4.0.