Logic and (modern western) science take place in the conscious mind. The subconscious is much more powerful and makes little or no use of logic at all! It's language is that of myth and dreams.
And there are theories of a deeper still "collective" consciousness which might explain the recurrence of mythological themes throughout history and across geological barriers.