This is a specific variation of the Heroic Sacrifice where someone has to volunteer to die so that everyone else can live. This is taking one for the team ramped up to the ultimate sacrifice. The reason may involve Life Energy released upon their death.
In contrast to Taking the Bullet this is not a spur of the moment decision but one where the person making the sacrifice has time to think [...] [tvtropes.org]