Structure and Purpose matters.
For Stack Overflow in particular, and some Stack Exchange sites (usually the more successful ones) there is a clear purpose and we can all judge whether a Question, an Answer, a Comment is useful towards that purpose. Without a clear Purpose everything becomes a popularity contest. There is also a useful Structure, the Q&A itself is structure, and there are tags putting related material near by.
Examples:
1. WowHead is (was? I don't play any more) a site for the MMO World of Warcraft, built by scraping all the data that powers the game and then with the ability for its members to comment on anything from the resulting data set.
The scraped data provides Structure, linking related things together and putting some useful bare-bones information in for everything. So you would visit Wowhead even without expecting to read any human contributions that were relevant, because the data on its own might be helpful. The game could track whether an item had significantly changed since you wrote a comment, and automatically differentiated things with similar names based on their underlying ID.
The game provides Purpose. I write a two paragraph description of how to perform a tricky but rewarding quest correctly, someone else makes a pun about the name of the quest, I get up-voted more because it's more helpful.
2. community.letsencrypt.org uses Discourse in an effective way
c.l.o is weaker on Structure, because it's very often being used by inexpert users seeking help, the same sort of cognitive shortcomings that can cause someone to not read and understand an error message can cause them to decide "Issuance Tech" is the right category for their question about how to configure Apache.
But the Purpose of c.l.o is pretty strong, most new topics on c.l.o start with a user who has a clear goal ("I want my web site to work in Firefox") and the community can help reach that goal without getting too distracted ("Why does your site use Comic Sans?") because the central topic, Let's Encrypt, is very clear and not a huge political minefield.
3. Youtube comments for _very specific channels_
Sometimes a Youtube channel ends up bringing together people with a very clear purpose. The only "Structure" here is provided by the videos themselves, comments about Episode 3 belong with the Episode 3 video, duh. But Purpose can be brought by a community.
Minecraft players focused on challenge gameplay (e.g. people building Agrarian Skies, or Project Ozone 2) attract a community of other people playing the same or similar challenges and the comments are naturally attracted to suggestions. "Use a Loot recycler, then merge all the lesser bags, nothing less than Epic is useful to you".