electricity is not the only reason we dam rivers, millions of acres of agriculture is irrigated via damning and diverting rivers
Jokes aside, everything's a tradeoff and while flood control / irrigation is helpful to farmers, it can also introduce a resiliency problem in quake zones, since a dam breakage can cause devastating floods. Actually, it doesn't even have to be an earthquake. Exhibit A: https://en.wikipedia.org/wiki/Oroville_Dam_crisis