What is the meaning of [dead men tell no tales]

It may be expedient to kill somebody who could betray a secret or give information about the criminal activities of others.