answered question
What you are asking about is what's known as a "Creation Myth". The Judeo-Christian story from the Bible is an example. There are many stories that date much further back, however.

As soon as man's brain was developed enough to wonder about his existence, he wondered 'why am I here' (and the answer was God) … Read more