History is very complicated and full of contradictions. Imperial Russia is often dubbed as a semi-medieval state, yet it was able to build the Trans-Siberian Railway which was a massive engineering feat.
Those things would also take several generations to build. They weren't comparable to highways or railways that got laid down within a decade.
The railway was a massive improvement for moving men and material in times of war.
Damn it, one may wonder if the US highway system had not happened had it not been for the cold war putting a fire under everyones ass.