All those many people were the descendants of Noah. They followed after Noah's sons until there were many separate nations. After the flood all those people separated into different groups all over the world.