Fandoms are just the modern version of going down to a public meeting for a club, 50 years ago.
Almost nobody is going to the YMCA or local library for hobbies, or to appreciate a particular genre of art or music. So they do it online or at conventions.
People are social creatures, they gather and meet people who have similar interests.
There are some key differences:
1. Modern fandoms are much larger because they are not bounded by geography and as a result have many more outliers who have truly deranged opinions on the art in question.
2. 50 years ago, a Star Trek club could have all kinds of crazy discussions about how Kirk should kiss Spock, but they had zero influence on the Star Trek writers. At most they could write a polite letter. Today all kinds of creatives are publicly hounded by the "fandom" when their work doesn't adhere to the wishes of the fans. This can be triggered by anything from holding the wrong political opinions to "shipping" the "wrong" characters. It's only a proportionally small number of "fans" that engage in this behavior, but because of (1) it's still enough people to move the needle.