Geography like that does help a lot, it’s part of the reason it’s so easy to do really good high-speed rail in Italy over somewhere like Germany that is way more spread out. But it’s only half the picture, you also need the political will to get it built!