Brett James recalled in a video interview
that he was driving home in his truck having just written a song with Holly Lamar, when "this crazy little ditty" popped into his head. He thought it was "a nursery rhyme, kind of silly thing," but when he got home James "couldn't get this little earworm" out of his head.
The next day, James demoed the "crazy little ditty" without having second or third verses. He didn't write them until he was actually sitting in the vocal booth.
"It was a 20-minute song," James said. "You hear about those, but it was a 20-minute song. I didn't take it too seriously. Just write this, it is fun, I like the idea. I put it on my record, and the next thing you know I hear Kenny and Kracker are doing it. The next thing you know, it's #1."