I think the issue is that TSMC exists, which takes up a lot of oxygen and opportunity. Whereas in space, there wasn't a high quality opportunity, so SpaceX had a lower hurdle to being the best (even though that still wasn't easy!).
It is prudent, possibly even critical, to have foundries on US shores, and the US will have to pay for it.