I've also heard that it came from miners panning for gold and seeing something in the pan that wasn't what they hoped for.
Oh, like it. I'll add that.
It's been added to the flash in the pan entry as a competing theory. Thanks