It's an allegorical account. It's not meant to be read literally.Well according to the Bible He made women out of Adam's rib. Doesn't seem like that would take a whole lot of creativity to think of them since I do believe that the two are related to one another. Especially for God since He created the whole entire universe so that would be simple child's play to Him.