OBVIOUSLY, the cow was a sorcerer in disguise. That's pretty funny, I honestly never knew that. Ah, well, you could do much worse than hang a cow for witchcraft.
My best guess as to how this happened was that someone or several people were chasing someone they thought was a witch and they got away and all they could find was this cow. I guess they assumed the witch turned into a cow.