Let us assume there is a "god". Here are some obvious follow up questions:
1. Why assume one "god" as creator of the universe?
2. From whence came this "god"?
3. If "god" created everything, then did "god" create itself?
Inquiring minds want to know. Of course, this all assumes that such a thing (or things) exist in the first place - something of which I am quite doubtful.
I think its pretty much a natural process.
Assume you lived three thousand years ago. You saw earthquakes, volcanoes, disease, lightning/thunder, etc....and had absolutely no way to control it, or even understand it. You could make fire, sure...but you couldn't cause fire to spew from the ground, or fall from the skies. So, you came to assume that there must be higher powers -- spirits, gods, demons, etc. -- that were responsible.
Those beings were on a higher plane than you...more powerful than you. But they were still fallible. So it was not too great a leap of logic to assume another level beyond them...beings that were even more powerful. Take this a few steps further, and eventually you reach a point where you posit the existence of an 'ultimate' god...the original god, the one from whom all other gods came. This god is omniscient, omnipotent, and omnipresent...it is impossible for a higher or more powerful god to exist than this one, because this god is infinitely perfect.
Actually, from a purely practical standpoint, this kind of god makes one's beliefs much easier. It does away with philosophical issues of infinite regression -- an infinite chain of gods, each more powerful than the previous one. It does away with the moral/ethical difficulties of following gods who are themselves imperfect, and make mistakes.
In truth, I am not at all surprised at the development of the concept of a 'perfect' god...only thing that surprises me is that it didn't arise in more cultures. It is far simpler to deal with on both philosophical and moral grounds; and also allows for far greater control of the populace in general (you can doubt an imperfect god; but you can't doubt a perfect one).
The questions of who created such a god, or where it came from, are pretty much irrelevant. Such a god could not have been created by any other being, since such a being would have to be even more perfect or powerful than an infinitely perfect/powerful god...which is impossible. Pretty much by definition, such a god must either never have existed, or always have existed. For it to have been created would be to create limitations on both its existence, and its power.