Genesis explains HOW God created, not why.
Some people say that Genesis means to tell us WHY God created not HOW He did. But Genesis doesn't tell us why God created. It tells us When, Who, What, and gives us a sequence in which things were done, but not why they were done. (The 'why' appears later in the Bible.)
Watch the full episode at: http//:creation.com/cml5-05