The thinking isn't that long-term, it's focused on the next 2-6 quarters. Plenty of people got rich off of plundering Hewlett-Packard; to the point there's no meat left on that carcass aside from garbage printers.
Ironically enough, the test equipment division (what I would call the actual successors of the company) have been through 2 restructurings (HP->Agilent->Keysight). Almost as though having cutting-edge engineering & R&D will have the side-effect of making good products. Shame that costs money though.