I honestly have no idea, I can’t say I’m educated in this subject.
My guess would be that it might have been to serve primarily as a moral guide, a way to teach the masses how to live their lives. It’s often speculated that the invention of a god served that very purpose too (among a great many other things.) That having an untouchable, omnipresent “alpha male” who has certain expectations and rules for you to obey was a powerful driving force in the building of societies, and an abstract substitute for a human dictatorship.
Possibly, no way to really know I think. One thing I’m personally pretty sure of is that if he did, he didn’t have magic powers and wasn’t put here by an almighty entity. ;)
I’ve gotten several questions regarding what I think about involving religion in human rights issues.
The way I see it is that if we’re going to base what we should or shouldn’t do on fictional stories that haven’t been proven to have any relation to reality, then we should also cease all deep mining and drilling works ASAP.
It simply isn’t responsible. We all know what the Dwarves woke in the darkness of Kazad-dûm.