The key difference is that in the first case, there is a true alarm requiring urgent attention. In the second case it’s a false alarm, and by laughing you inform your kin in the vicinity not to waste their resources rushing to his aid. It is nature’s “all’s okay” signal. What is left unexplained is the slight schadenfreude aspect to the whole thing.