I think this is untrue for Japan.
One of the few countries shaped perfectly for railways (Italy also comes to mind)
Probably important to note that Japan privatised its state-owned rail network, so the private companies did not have to build out the network.
And China, and India
One of the few countries shaped perfectly for railways (Italy also comes to mind)