The Wikipedia page says that there is not agreed upon origin so I'm curious to hear some theories. It also made it seem like they may have separate origins for witches and wizards, but I thought it simpler to make a single question.
Hi, not discouraging further answers here, but fyi, you'll find some earlier theories in this post (which includes links to a few more)