This is probably intended, because @e selects all entities and if the player dies, then the player entity will die, but the player is still there, so @a can still select players on the death screen.
This is probably intended, because @e selects all entities and if the player dies, then the player entity will die, but the player is still there, so @a can still select players on the death screen.