The joke is a pun. Cardiologists are doctors that specialize in treatments for the heart.  'Losing heart' is a phrase means to lose faith or become hopeless about something.  Taken literally, the phrase could mean to actually lose one's heart from their body somehow, and could imply death.
OLD CARDIOLOGISTS never die , they just lose heart .