It had been a long time since the cowboy hat had seen the light of day. Long ago, it had been worn into the Secret Passageways, but its owner had fled without it after hearing something spookier than normal coming towards him and his...friend. The cowboy hat had discovered that it wasn’t actually anything spookier than normal, but rather a mildly eccentric house-elf. But the cowboy hat had lived with that house-elf until that morning, when it had found itself suddenly at the top of the rock wall next to the Quidditch Pitch.
Unbeknownst to the hat, some wayward magic had slipped into it in the time it had spent tucked away in the Secret Passageways with all the other hats in the house-elf’s collection. Anyone who came within a few feet of it would be compelled to pick it up and put it on. Worse, it was now a semi-sapient Thinking Cap and would help grease the wheels in the wearer’s mind, bringing to light as many ideas as they might possibly come up with and compelling them to share them out loud. This particular hat, with strong memories of cowboy-like activities, might even influence those ideas just a bit.