When something really, really bad happens to you, people will say to you "I am sorry," even if they had nothing to do with what happened.
And it's because sometimes thing happen that are so bad that what they really mean is "I am acting as an ambassador and on behalf of everything that must hurt so much right now, I say sorry."
Because sometimes things are so bad, someone just has to say it.