People wore fedoras to identify them as part of a subculture (Reddit gentlemen).
Most people who weren't part of the subculture pretty quickly figured out that removing their fedora meant people didn't assume they were a part of it, so they took it off.
Same thing with hipster glasses, mullets, dreads, swastikas, list goes on...