The more the industry grows the more is being made therefore at a quicker rate then can be shipped out. Where the railroads come in because that is the exact transportation the times were looking for.
if more explanation is needed just leave a comment hope this helped :)