For those unfamiliar, here's a great overview of the Artemis HLS landing systems: https://youtu.be/WSg5UfFM7NY?t=47
A private company developing a Super Heavy Lift Mars/Moon rocket and streaming the monthly tests online. Very exciting times.
In fact, SpaceX would not exist without the governmental effort to create a private space industry which has pumped a LOT of money into SpaceX and competitors.
But the conversation is always around investors and not about those who actually made this possible, the American tax payer.
It's true that SpaceX was helped by NASA after they got their first successful launches of Falcon-1, that help was important and allowed skipping Falcon-5. However that's the regular way American taxpayers - represented by those government departments - operate: they grow markets of new products and services, and then both benefit from new offerings and receive tax from them, while public has more chances for personal enrichment.
In some sense, yes, it's American taxpayer who makes all that - including favorable legal environment - possible; on the other hand, investors are the standard way, the means how that is done. It's odd to see taxpayers and investors as completely opposing entities.
Elon Musk has said "SpaceX needs to pass through a deep chasm of negative cash flow over the next year or so to make Starlink financially viable. Every new satellite constellation in history has gone bankrupt. We hope to be the first that does not." (https://twitter.com/elonmusk/status/1359024384200101888?)lan...
At this point their R&D spending on Starship and Starlink means they're running off constantly raising capital from investors (same as many other startups). When Starlink is generating decent income they're going to be an extremely profitable company, but they're not there yet.