Shakespeare wrote stories for the king, so he might consider stories that the king was able to satisfy. Macbeth killed a king to become the king himself, so it could be that Shakespeare’s king could complain even if Shakespeare let Macbeth be alive. The reason, that Shakespeare decided to kill Macbeth in the story, was for his audience.
On the other hand, general old stories were not written by the specific authors. They were from the public