What was the main reason railroad lines expanded in the South during the late 1800s?

to ship seeds and other goods to farm fields
to transport supplies during the Civil War
to help workers relocate out of the South
to move raw materials to new factories