Lenin had a theory called "Revolutionary Defeatism". It meant that a defeat of the Imperial Russian regime in foreign imperialist wars would weaken the imperial state apparatus enough for the people to seize power - which by the way is what happened.