We know this thanks to archaeologists who excavated many places and discovered that many early civilizations gathered around large rivers where they could develop agriculture. This was seen in places such as Mesopotamia, India, China, Egypt, etc.
Trevor noah says at the bottom of the article on bold text
Because they were trying to restore the wealth they had lost in all the wars they had fought.