Because you can still do things with socialism. You can't defy the ultimate arbiter in supply and demand, but a command economy can accomplish some tasks. Drafting citizens to build and operate war machines is one of them, and retooling that infrastructure to reach outer space isn't that much of a change in course