It ain't that easy. God, imo, believes in free will. He can't just do this or do that on a whim, he must think of the consequences of his actions upon different people.
Well, being all powerful and all knowing, god will know everything that will ever happen. Thus at the moment of creation, why would he create anything less than perfect? Unless he/she is malicious, of course. Goodness is just something that people assume.