Like most people commenting, I am not a Christian or other believer in god. I do think it's an interesting theoretical question though. Of course there have been so many definitions of god or gods that I'm just going to have to assume you are referencing the concept of god that is generally accepted by modern, mainstream Christians living in the United States or Europe.
In which case we have to assume that god has the attribute of eternalness. So I agree with some others that god has no control over his own beginning or existence. So he essentially exists for no reason. However that doesn't preclude that god could, given the concept that he is omnipotent, cause his own demise. In fact there is a very very tiny subset of Christians and Jews who take Nietzsche's metaphor of a dead god literally, and believe that god indeed did commit cosmic suicide at some point. Also there is a particularly interesting cult of Judaism who believe that god died in the creation of the world.
In which case the answer is that god existed to make us. This is a very self-centered view, a rather extended version of the view that earth is the center of the universe because that is where we are.
But in any case, god is imaginary, so it doesn't matter.
In which case we have to assume that god has the attribute of eternalness. So I agree with some others that god has no control over his own beginning or existence. So he essentially exists for no reason. However that doesn't preclude that god could, given the concept that he is omnipotent, cause his own demise. In fact there is a very very tiny subset of Christians and Jews who take Nietzsche's metaphor of a dead god literally, and believe that god indeed did commit cosmic suicide at some point. Also there is a particularly interesting cult of Judaism who believe that god died in the creation of the world.
In which case the answer is that god existed to make us. This is a very self-centered view, a rather extended version of the view that earth is the center of the universe because that is where we are.
But in any case, god is imaginary, so it doesn't matter.