Why are mills located on rivers?

Historically mills were located on rivers because the saws, grinding stones or whatever other equipment the mill used was powered by a water wheel. The river would turn the wheel which would be connected through gears and drive belts/shafts.