Is it a type of hat that was actually worn by some group of people? If so, why did it become associated with magic?
What is the earliest portrayal of a magical person wearing a pointed hat (ideally with stars and/or moons)?
Hi, not discouraging further answers here, but fyi, you'll find some earlier theories in this post (which includes links to a few more)