But the company also attributed $133 million of its revenue to sales of regulatory credits. Those are government-issued credits that can be sold on the open market to automakers who can’t otherwise meet emission or mileage standards. Without those sales, Tesla would have been in the red for the fourth quarter.
https://www.latimes.com/business/story/2020-01-31/tesla-stock-mystery