I bet one of them wasn’t happy about being buried with their spouse.
The man was Harry Mudd, he got stuck in Harappan times due to a mishap with a 23rd century time machine, one of the unseen Star Trek episodes.