Government incentives helped them get to their current level of profitability. Not just in the US either: in Norway, for instance, there's a huge environmental tax on gas-burning cars, but EVs are exempt since they don't burn fossil fuel, so Teslas end up being quite cheap by comparison and are therefore very popular there.
You're being disingenuous by claiming carbon credits are the only form of government largesse or incentive.