Kings and queens have often put themselves above the law, or simply changed the laws as they pleased.
They had many ways to get rid of people who bothered or threatened them. The lucky ones wound up in prisons or insane asylums. The others ended up dead.