* If you have more than one unit selected, and one of those units dies, then the unit that died will be deselected.

More...