If perception is that you are belonging to a group that is targeted and harmed, regardless of your true state of being
Though we now know they werent a witch, the perception of the time was that they were of witches. By the bonfire standard, they were equally likely to harmed as if they truly were a witch.