1. They weren't much better than the West. Consider that the capitalist world surpassed them at pretty much anything they started with an advantage in.
2. They were also really bad at managing the scarcity of very basic things their people needed. Like, food and medicine. The joke was that Russia had "bad weather" for 70 years under communism.
There was no competition on their domestic market, hence it sucked.
Well, space industry was quite suboptimal in USSR. Successes were achieved because of 1) all resources were spent on space and military and 2) great legacy of Russian Empire (especially great minds like Korolev, Tsiolkovsky and Tupolev). So I see it more like stagnation than development.
So the Objective Function assigned much higher "value" to Military production (either explicitly or implicitly) and this of course made military production more "efficient" than consumer goods production. (I put quotes around "efficient" because there still was a lot of waste and corruption even in that, of course).
Though of course the required central planning here is quite different, more about smart bets than optimizations, and focusing engineering resources at important problems, which doesn't seem that great at capitalistic economies either(think planned obsolesce, "my generation is optimizing ads", browser in-incompatibilities, etc) .