A lot of this "idiocy" is in fact rational (if unethical) behavior. At many large companies, upper management is rewarded for short-term gains. In response, these managers adopt strategies that produce short-term gains. If these gains can be boosted by risking the company's future, that too is a rational trade-off: The managers will be long gone when the company falls into decline, but in the meantime they will have collected a lot of pumped-up bonuses.
When people are paid today to burn tomorrow, why are we surprised that they reach for the matches?
The fact that microoptimizations that are harmful to the company in a broader perspective are rational on the part of individual mid-level managers working within the incentive framework provided by upper management, doesn't mean they aren't idiocy on the part of the upper management responsible for creating the incentive framework.
In fact, that means they are idiocy on the part of upper management.