Actually, the reason is a bit more mundane than military strategy. The first railroad in Russia was laid out by an American engineer who had built several railroads in the Southern USA. At that time, most railroads in the South were built on a five-foot gauge, and he used the gauge he was most familiar with.
Also, railroads in Western Europe were not at that time completely standardized, even in the UK, where the "standard" gauge originated.