In the era after Wold War I and before the Great Depression, American towns grew rapidly mostly because of the Second Industrial Revolution, which gave way to a rise of factories both in and around major cities in the US.
Railroads had an impact to increase transportation throughout the country. It made it more easier to get to other cities or states depending on which railway you were going.