One clear benefit of ensuring disparity of rail systems across adjacent countries is protection from an impromptu invasion. IIRC for some countries during the WWs, that was a main reason for the differences and was in fact effective. I wonder if the rail systems difference helped avoid Russia using the rail system for the invasion of Ukraine.