Most of that was due to Stalin's incompetence. The Soviets won in spite of Stalin.
Of that 20 million a good amount came from the Soviet side itself. A Russian soldier at the front had two sets of guns aimed at him. One from the Nazis and another from the Commisars behind him should he ever decide to retreat or do something deemed anti soviet.