Mostly because certain very poor agricultural decisions caused repeated famines and further social unrest. Other than that it is telling that USSR was essentially a close second to USA for most of its existence, sometimes even at the forefront.
The problem was management in the lower base levels like building industry, especially agriculture and some low level factory work, like parts or pieces. R&D and military industry was excellent.
Both were subject to the 'dont trade with communists' policy during the time they both existed..
But wasn't this the same time as glasnost/perestroika?
And again, this doesn't happen in a vacuum..
Was non-communist policy (e.g the west) more favorable to china than russia?
The USSR drained everything else to keep the space program and the military at a high level until it fell.
Once it fell, I'm pretty sure most of those researchers ran wherever they could, as fast as they could.
Nothing really was drained for advanced projects, not even coffers. What happened was tragic mismanagement of agriculture, part manufacturing and building industry. This resulted in serious shortages all around and many deaths to famine.
Only at the end did innovation slow down, due to above factors and social unrest.
Soviet biology was utterly destroyed by an ideological commitment to Lysenkoism.
The USSR never committed so many resources to war; they engaged in the "cold war", but that was really about it. Germany was fighting an active war on two fronts and got crushed in the middle. The Soviets just built a bunch of bombs and walls (after the action in WWII).
https://en.wikipedia.org/wiki/Soviet_space_program#Notable_f...