These were in fact two separate 'creation' events separated by the seventh 'day' of rest, that 'day' of rest being one-thousand years in man's time. The six days of creation, and the seventh day of rest are one-thousand years each in man's time:
2 Pet 3:8
8 But, beloved, be not ignorant of this one thing, that one day is with the Lord as a thousand years, and a thousand years as one day. (KJV)
There is a great difference between the creation event described in Genesis chapter one and the forming event described in Genesis chapter two. Many say that chapter two is just a rehash of chapter one with more info added in. This is not true.Adam and Eve were not the first people on the earth. The Creation event in Gen 1:27 is different that the Gen 2:7 Forming of Adam in the Garden of Eden and separated by at least a thousand years time, most probably more.
We observed that male and female were created at the same time on that sixth day (after all the animals are created). We also notice that Adam and Eve are not yet on the scene, they will not be mentioned by name until the next chapter.
The people created on the above sixth day, are all the separate races. All the distinct and diverse races were created on this sixth day.
*2 formed = Here again we see a unique word use in connection with Adam in the Garden of Eden. Compare the fact that Adam was FORMED, but those from the sixth day (Gen 1:27) were CREATED. Also notice that Adam was formed alone, for Eve does not show up until eighteen verses later in (Gen 2:22); but in the sixth day creation, man and women were created same simultaneously (Gen 1:27).
CREATED: Hebrew word # 1254; bara' - to shape, to fashion, to create (always with God as subject) used of individual man, used of new conditions and circumstances, to be created, used of birth, used of something new.
FORMED: Hebrew word # 3335; yatsar - to form, to fashion, to frame, used of human activity, used of divine activity, used of Israel as a people, to frame, to pre-ordain, to plan (figurative of divine) to purpose of a situation, to be predetermined, to be pre-ordained, to be formed.
The reason for Adam and Eve being singled out from the creation of the rest of mankind is because that through the womb of Eve, umbilical cord to umbilical cord, would eventually four-thousand years later, be born the Messiah Jesus the Christ. The Bible is basically the story of one man's family and the peoples that they encounter through-out history. That is the history of Adams family, through which Jesus Christ would come. And through the sacrifice of Jesus Christ on the cross, all peoples from all the Nations (eth'-nos in the Greek of the New Testament, & goyem in the Hebrew of the Old Testament) of the earth can be grafted into the eternal family of God in the eternity, in Heaven!