There are some moments in life that are truly terrible, but also bring out beautiful things. When these happen, we call them "bittersweet." Which, in itself, means that it's unfortunate, but also sweet and meaningful.
It could be a loss, it could be a tragedy, but the memories from it bring people together and for that, we are sometimes a bit grateful.