Hate sounding like a broken record, but it is time for Musk to pony up with his own funds and stop taking US taxpayer subsidies.
Experienced tax accountants would show several categories, where firms have merely made use of basic deductions, features of tax law.
Mineral extraction (oil, gas, mining, etc. use depletion.) Construction uses "completed contract method, to defer tax payments. Firms doing international business, defer taxes almost indefinitely.
To criticize just one that you do not like, is pretty weak.
Tax laws have been used to incentivize, to get intended goals.
One such example is oil and gas.