Some writers outline.
Some writers discover the story as they go.
Fantasy writers accidentally invent three new religions while trying to name a horse.