Not that I think apple is thinking this (though they might be) but by putting this on their homepage they attract positive attention from the interweb and are cast in a very positive light. This in the long term leads to good branding and more sales.
Heartfelt condolences and good business can go hand in hand.