The process of natural selection.
How can nothing produce God?
Natural selection is what it is - an effect or effects of prior physical causes. There's nothing wise or foolish about physical processes. They just are.
How can nothing produce God?
God, by definition, is not a thing, is not contingent, and consequently, not something that was produced. The question as to how can nothing produce something is a question for you, not me.
What are you comparing the universe to in order to find something wrong with it?
Cordially,