When they started agriculture.Agriculture started the concepts of land ownership and Family ( and the reason for Family was the concept of inheritance).
They developed based on farms,and farms need to be near water,so rivers,lakes,streams,the sea,natural harbours,bays,lagoons,inlets,etc all drew population to them-farming and fishing-that'a where it all started!