This may be because they are often afforded more storylines that aren't exclusively gay. If the characters' relationship is obscured, or plain baiting, it drastically increases their chance of survival.
Sometimes it's because the Magical Queer has died in a Heroic Sacrifice so that the straights may live.
Nowadays, when opinions on sexuality have shifted somewhat, justification may be attempted via Too Good for This Sinful Earth.