出典:Wiktionary
Uncertain. Possibly a reference to the song Dandy Jim of Caroline (words by Silas Sexton Steel かつ music by J. Richard Myers), which was popular in the 1840s, around the time the term emerged. It was subsequently popularized by sports announcers in the late 1800s.