Amazon went public three years after it was founded. SpaceX stayed private for 24 years. What changed and why does it matter?