We can't presume to know God's thoughts or motives, except what He has told us through His Word. However, we can glean from the study of His Word His character, and from there, draw conclusions as to what His thoughts may have been.
So, I'm drawing some conclusions by using my imagination.
Perhaps, before God created the world and the universe, He desired to create a being that would bring Him pleasure. Particularly, the pleasure of having someone love you unconditionally and by his or her free will. So, in anticipation of this being, He created the universe, our galaxy, our solar system, and our earth for the specific comfort and enjoyment of His ultimate creation, mankind.
God placed Adam in a garden, and I imagine He smiled with pleasure. This being, Adam, would chose to love Him, chose to fellowship with Him. And so Adam did. And then God, in His great joy and love for Adam, perhaps thought to Himself how much Adam, as God did, would enjoy the comfort and pleasure of another (even as He did Adam). He created Eve.
Eve came from Adam's side, we often hear, but I wonder if from God's perspective, God saw it much more intimately. Adam was created in God's image, a creature of great pleasure, a reflection of Himself, and He took such great pleasure in that, that He desired for Adam to have the same. So, Eve came from Adam's rib and was bone of his bone and flesh of his flesh. God's love shown to Adam by creating someone who would be the close companion that Adam was to God...someone Adam would be able to love.
As a wife, I continue to learn that I am for my husband's pleasure. That's a positive, not a negative. For, if my husband has pleasure with me, then I will find great pleasure in him, even as God takes pleasure in us. Joy. Love. Peace. All these wonderful things flow from this relationship.
To God be all Glory!