Nothing new is ever profitable until you get past the early prototype and scaling stages. For big capital intensive stuff only government historically has pockets deep enough to burn enough money to get big stuff off the ground (sometimes literally). Rockets, jet engines, microprocessors, huge scale power grids, the Internet, genomics, supercomputing, nuclear power, solar power, the list goes on and on.
Private investors just have too low a risk tolerance and too short a time horizon.
I actually wish this weren't so, but it is so.
It's also terribly hypocritical to bash Elon for taking government contracts when everyone does it. Why do you think Amazon's HQ2 is going to be in the DC area?