Why did the first civilizations develop around river valleys?

It is quite difficult to carry water, which is obviously a necessity. This being true, is would be much more convenient to love next to a year round water source.