The joke is a pun.  A dinghy is a small boat usually used for getting to and from a main boat.  The word 'dinghy' sounds like 'ding' which could be taken as a 'dent' or meaning 'slightly damaged'.
Old sailors never die , they just get a little dinghy .