B. Economic transformation was the primary reason for the shift described in the excerpt. The movement of people from rural to urban areas was largely driven by the economic opportunities available in cities, such as jobs in manufacturing, trade, and services. As the U.S. economy shifted from primarily agricultural to industrial and service-based, people migrated to urban areas in search of employment and better living conditions.