“Billions that came to SpaceX via government contracts.”
Just like building the railroads in the 1840s - 1890s.
I will elaborate - SpaceX Falcon and Falcon Heavy are the only US systems capable of launching large and multiple payloads, as well as taking US astronauts to ISS, at low cost.
There is no comparison to the 19th century where the ultra rich fought for government RR contracts.