Why did people in ancient times start settling in cities instead of living as nomads?

為什么古代的人們開始在城市定居,而不是以游牧民族的身份生活?