The story
From the shape. Apparently originally "fire shovel hat" or "fire-shovel-hat" based on a fire shovel.
Etymology from Wiktionary, CC BY-SA 4.0.
Today it means: A broad-brimmed style of hat, varying widely in detail, generally turned up at the sides and projecting in front like a shovel, formerly worn by some clergy. Full definition →
From the shape. Apparently originally "fire shovel hat" or "fire-shovel-hat" based on a fire shovel.
Etymology from Wiktionary, CC BY-SA 4.0.