The obvious answer is that God willed it.
The question is clearly not an innocent one; you're asking for a scientific explanation for something that has no scientific explanation. If no one provides an answer that satisfies your sensibilities, then you (supposedly) win.
It's a lot like the "Who created God?" question. Christians believe God is the Uncaused Cause, the Sovereign Lord and Creator of all, the Alpha and Omega. But because that's not a scientific answer, it's somehow wrong. These are not fair and unbiased attempts to hear and evaluate the opinions of others; they are clearly trap questions.
Here's the text from the OP from a different Christian Forums thread titled "The Paradox of a Perfect God":
"According to my understanding the Christian God is perfect – He/It has no needs or wants
At the same time Christians also believe that God created the World/Universe, along with life
If God had no needs or wants prior to Creation then, logically, God would have no reason to create anything
This line of reasoning seems to lead to the logical conclusion that either God is not perfect or He/It did not create the Universe.
What am I missing here?"
The premise - that the poster has determined for himself what is or isn't perfect - is fatally flawed for what I hope are obvious reasons. God is not "one of us." His reasons for creating, or for doing anything else, do not have to coincide with ours, and we do not have to fully understand them. Also, the premise that God has no "wants" is flawed - it's clear that God wants us to love Him, and love one another; not because He needs those things, but because He, out of love, wants what is best for us. There is no paradox.
It is perfectly fair for anyone to not accept what Christians accept on faith. But to constantly pepper Christians with certain types of questions, then immediately declare the answers invalid because those answers don't line up with your secular sensibilities, is grossly unfair, and is also a serious waste of time.