Weird headline: Japanese carmakers are doing the same error, while Tesla (an American company) is the one of the leading electric carmakers... I'd just replace it with Legacy Carmakers (e.g. Ford, GM, Toyota and so on).
Tesla is also retreating from the being a car company, at least they don't see being a company that sells electric cars to consumers being a great business to be in long term.
One is that their stock is priced for extreme growth, so they need to be in businesses that can justify that. Cars are not that kind of business. They were for a while when Tesla was much smaller and the only decent EV maker, but not anymore. For any carmaker with a typical carmaker PE, cars can be a fine business.
Tesla's other problem is that Elon did serious damage to their brand, and they're not even getting the growth that other EV makers are getting.