The story likely originated from Jonah. He probably told it to people who told it to people who……You get the idea….. until someone was inspired to write it down. That’s essentially how most ancient stories were passed down. Those in the Bible and those that aren’t - like the Iliad and the Odyssey!