The story
Origin uncertain. The Oxford English Dictionary suggests onomatopoeia for motion. Attested since the 18th century. Compare unnasalised dialectal jick (“to avoid with a sudden jerk of the body, elude”).
Etymology from Wiktionary, CC BY-SA 4.0.