The major condition that was responsible for the rapid growth of railroad industry was that the government started granting massive land easements to the railroads for free.
This was the most important part of the equation. Without the land grants all the other technological points were mere points of interest. Railroad owners sold stock to investors to finance the construction of railroads.