It was most likely invented by humankind. Arose during the development of language, starting, maybe, about 12,000 years ago, and refined ever since then. By humans.
Ideas about gods and demons have many illogical components.
My notion of God is not illogical.
According to John, the "Logos" was there in the beginning.
Of course nobody reads that thing anyhow.
Everybody is waiting around for the next 400 hitter in Major League Baseball to show up, because everybody knows that things are always getting better. Another S.J. Gould gem.