I would think they were very close friends and Mark felt that he could really could help Hugh out by pinning it on the burglar due to his position. Probably realised pretty soon (when in bed that night) that he had a way to kill his wife and have a good alibi to not be a suspect.