why does the river flow