Every human alive, the king included, was just a servant to thegods, and those gods could choose to treat him or her however theywanted.
At what point in history did it seem apparent to a larger portion of the populace that "god(s) anointed the king" was no longer a presumed reality? When did it seem that way to the kings themselves? Or have they always believed the myth?