THAT is the real question.
Nothing is hard for God.
God (THE Elohim of Gen.1:1) created That which He desired to Create for HIS PURPOSE. As The Creator, God had the authority to do such! We, as part of This Creation, can only seek, though Our choice, to find the answers to Our questions.
Above I mentioned, The Elohim. That is because in Genesis 1:1 it states: "Let US create." The Proper pronoun, US, is a plural pronoun, not a singular pronoun. Hence, US.
Remember what Jesus said on The Cross before His physical death? Give Me that which I had with You in The Begining. Hence, US!
Deepseeker