All industry was dedicated to manufacturing weapons - what was produced for civilians was a side-production and small part of the output.
For example - practically all of the aluminium in the Soviet Union was used for the military. And most of the aluminium was used for rocketry and aviation - again military. And you have a big cities like Dnipropetrovsk in Ukraine called Rocket city for having a huge concentration of such plants.
Now space exploration sounded good because it is one of the few areas the Soviet Union could compete with US AND it was convenient to explain why Socialism needs so many rockets.
The scientific progress might even eventually improve living standards might one wishfully think. Of course it didn't, at least it wasn't allowed to.
Eventually, most of the military-industrial complex was disbanded and it is only logical that the space cult was thrown in the dustbin on recent history.
Nowadays Russia has only a fraction of it is former military output and there isn't any point in pretending it is smaller, quite the opposite, the government think it is important to display it is military might.