I've been watching a TV show that aired over 20 years ago. And at the time you watched it weekly, so maybe it didn't feel so close, but there have been two character deaths close together.
One made sense in the context of the plot, but when the credits rolled I realised the actor passed unexpectedly, so they had reworked the plot around his passing. But they made it make perfect sense. I looked up the actor and they even included the real cause of death in the character's story (died shortly after triple bypass surgery).
The latter, the actor was still alive, so it was planned for storytelling. And I'm analysing as it as I go (I obtained a filmmaking degree and worked as a director/writer before retraining as a scientist) and it seems like it was just for shock value. It contributed absolutely nothing.
Death is so prevalent in media. And I'm fine with it when it serves a purpose. But when it doesn't it's like... why?
