They usually borrow money at really high leverage to buy the company so they risk very little of their own capital. Then they cut anything and everything to minimize costs (and choke off the ability to compete in the future) then dump the carcass(es) on whatever suckers they can find because they made the balance sheet look better temporarily.
Banks line up to lend them money because there is a never-ending supply of suckers and these firms usually manage to find one before the inevitable crash and burn.
Why is it so obvious to you, but not these other people? How does this charade perpetuate? Maybe there is value in there somewhere?
Buyers always think that they have some insight about the business that can materialise some yet-unrealised potential. You've probably done it yourself a few times, "if only Company X did this and that, instead of what they're doing now -- they'd make loads!". Everyone knows PE don't know how to run businesses beyond the basics, so buyers will always see untapped potential. That makes for high prices.
To be fair, Rackspace's market cap was only about 4 billion at time of acquisition. They don't really have the capital to get into a war with Amazon, Google, or Microsoft, when data centers cost hundreds of millions/billions to build.
The economies of scale they're fighting against are gigantic, so it makes sense to go towards supporting the clouds of other companies rather than building out their own bare metal.
The sales engineer / presales architect working to design a cross-cloud solution for a customer is a very very different kind of "smart" from the Linux geeks that keep your systems running once they're deployed
Neither is better than the other, mind you - they're just different
They've reimagined the company as providing support on third-party platforms, namely AWS and Azure, instead of focusing on building, selling and supporting their own offerings. That model requires significantly fewer employees. That change, coupled with the buyout, means that there's no surprise in seeing layoffs at Rackspace, and there are likely more to come.
I'm a former Racker.