One plausible reason for this was its ingredients cost little to manufacture; and due to taxes being lifted on sugar in 1880, it became widely available as a cheap foodstuff.
Miners in Yorkshire and South Wales (United Kingdom) would take a jam sandwich and piece of cheese with them down the pits; these would cut through the dust and give different textures and flavours.
[1] The lyrics were written by Adam McNaughton, and it was sung to the tune of "Does Your Chewing Gum Lose Its Flavour (On the Bedpost Overnight?)".
"[citation needed] 'The 'Pool' is short for Blackpool, Lancashire, in the north of England, and singer Ian Anderson adopts a Lancashire inflection and colloquialisms:[2] "I'm going up the 'Pool/ from down the smoke [referring to London In the south of England, renowned for its air pollution prior to smokeless zoning laws] below/ to taste me mum's jam sarnies/ and see our Auntie Flo."
In Charles Schulz's Peanuts comic, Linus is fond of what he calls "jelly-bread sandwiches".