It is thought the nursery rhyme dates back to the early 19th century and refers to the jumping candlestick game where participants would try and jump over candles without extinguishing the flame.
'Jack be nimble, Jack be quick' lyrics
Jack be nimble, Jack be quick, Jack jump over The candlestick