Someone else can explain it better, but basically the bicameral mind theory posits that the two hemispheres of the human brain only began communicating effectively in recent human history. Based off of symptoms related to illnesses we see now in the modern day, it is believed that this could be a plausible explanation for ancient humans claiming to have spirits, gods, etc talking to them.
Watch Loki. I think we have our big bad.