Since ancient times, big cities have always been built close to rivers, since Pipes weren't a thing. So if they can figure out a facility to control the river flow, the advantage the rivers give will be massive. It is worth the risk and resources considering the timeline this takes place.