Hewlett-Packard's identity crisis

Hewlett-Packard has developed a nasty habit of overpaying for acquisitions and then having to write off most of the value. So why is it surprised each time this happens?