They probably have also been trying to penetrate the military energy storage market (a.k.a. "tactical microgrids"), but so far they haven't. They need more vertical integration for that. Right now they don't own battery-cell manufacturing, so the defense contractors that build ruggedized battery packs skip them and go straight to sourcing from the battery-cell manufacturers.
(Fun fact: Tesla's Gigafactories as physical spaces produce a ton of battery cells, but Tesla itself doesn't. Tesla leases space in its Gigafactories to cell manufacturers like Panasonic, who actually produce the cells, so that Tesla can then directly consume some of the cells produced into battery packs, without any intervening logistics costs.)
It's always been my own personal stance that Tesla is a battery company, that happens to sell some of its battery packs in the form of cars. (Remember that 80% of the depreciated value of an EV is its batteries.) The cars were never the core of Tesla's business model; they were a useful vertically-integrated B2C demand-sink they used to bootstrap their B2B battery sales business.
You can't tell me there's a rational reason there's a common headline of Tesla missing forecast and guidance but still going up after earning report
Indeed. What I find particularly grating is that Tesla seems rather overpriced, but if SpaceX acquires it, it'll provide the Tesla investors with a nice exit. (And SpaceX of course is a very long shot that's in any number of retirement portfolios by virtue of its rash index inclusion.)