I've always thought that was one of the best quotes relating to our jobs that existed, without examining the moral implications.
We say that not in pointing out our luck for not being involved in that accident, but to point out that, at the end of the day, sometimes it is just pure, dumb luck that it WASN'T us in that situation. There are several accidents that have been attributed mostly to "wrong place wrong time", and that's what this is talking about.
Without getting into a discussion or God or ideology, this accident is very appropo for this phrase. If not for luck, Grace of God, whatever you want to call it, any one of us could very easily be in a situation not of our own making from which we have no way to control whether we live or die. It could happen in the air, it could happen on the ground, you just never know what life will throw at you or when death comes knocking at your door...