Their solar business is a rock around their necks, that is hemorrhaging money, and laying off employees.
Their charger network's nice, but in a post oil world, every gas station will have chargers. And for some reason, Ford doesn't feel the need to own Exxon-Mobil - probably because energy is an interchangeable commodity... And they are not in the commodity business. They are in the business of building cars.
Why hasn't GM bought an oil company, and a couple thousand gas stations? Apparently, this vertical integration would have made them 10 times more valuable.
Maybe it's because I can get the exact same gas from the Shell across the street.
Also, half of this vertical integration only 'works' (If you squint a lot) due to subsidies/loopholes in how people are billed/credited for home solar installations. When those installations become widespread, these subsidies will go away, and we'll be back to buying power wholesale, from utilities. There is no universe in which putting solar panels on your roof will be cheaper, or more efficient, then buying power from a solar utility.
The reason for the Gigafactory is to compress supply chains, but more importantly because there isn't enough global demand/supply for batteries to support the volumes Tesla wants. Without building their own factory, the global supply would be a constraining factor for Tesla's plans. The Gigafactory is a long-term bet that they will need that much supply in the future. This is not a problem that other carmakers have where they would want to "vertically integrate" oil refineries and gas stations, because availability of gasoline is not a problem.
It is mitigation for a early-adopter business risk that their competitors don't have.
In any sane pricing of their stock, that risk would have lowered its value, and mitigating it would have brought it up to that of an auto manufacturer with similar volumes and margins and growth potential.
For some reason, though, people think that mitigating a risk that their competitors don't have warrants a premium.