Nazism and Soviet Communism WERE religions. There was an orthodoxy and there were consequences for those who didn’t adhere to it. These particular religions just didn’t have a theology.
And Nazis love religious iconography and relics. While they didn’t necessarily believe in the theology behind them they still wanted them and generally assumed there was something useful about them.