A Pokémon with very little HP may still be the only member that can handle an opponent. One more useful action from it can matter more than simply keeping another healthy member available.
Saving it has costs too. Its replacement may take a hit, and entering again may involve entry damage. Think about how it returns and what it will do, not just how many team icons remain lit.
If its original target is already gone, staying in to deal some damage might help a reserve, even if it then faints. Compare that benefit with what you lose by giving it up.
Letting a Pokémon faint can bring in a reserve, but the lost resource cannot be recovered. The same low-HP member can have very different value in two battles; check whether it still has unfinished work.