This is because some mushrooms, particularly those in the genus *Agaricus*, have bell-shaped caps when they are young. The word "champignon" itself is derived from the Old French "champignon," which is a diminutive of "champ," meaning "field," thus signifying a mushroom that grows in the field.
Over time, the word "champignon" became the standard French term for all types of mushrooms.