B. People used rivers for recreational purposes like swimming and diving
While recreational purposes may be an aspect of river usage, the other options (A, C, and D) are more directly related to the foundational reasons for the development of cities along waterways, such as transportation, access to fresh water, and food sources.