Etymology
Today it means: A hat with a downward-tilted brim. Full definition →
From its resemblance to the cap of a mushroom.
Etymology from Wiktionary, CC BY-SA 4.0.