Witch trials were supposed to be a modern scientific and legal process. They didn’t happen in a systematic matter in the medieval period. So they are really an artifact of a narrow time period, bounded on one side by less proscriptive and thorough government and by Enlightenment philosophy about metaphysics and prosecution on the other.