From the beginning God made Man- and within man was male and female. They were not separate creatures they were the same creature, just two distinct personalities of the same creature. This is why when two people marry, they become one flesh, just like in the beginning where God saw both personalities but called both of them Adam, because in his sight they were both one, they were both called Adam (not Adam 1 and Adam 2).