It's primarily commentary on a specific pattern in storytelling where female characters will be killed to motivate the male characters, it can be done more or less well, the question is primarily why it's showing up so often.