Shakespeare could have written this to appease James I; the year before Macbeth was written there was the 1605 gunpowder plot. The attempt on the king's life meant that it was necessary to warn people against regicide, as it would sprout the Divine right of kings and, therefore, natural order