How I imagine this happened: Pinkie saw Screwball flying around with that hat, wanted to fly with a propeller beanie of her own, and Screwball gave her one... by pulling off her own beanie and passing it to Pinkie, another one exactly the same size being just under it!