Aggressive moderation was what made it worth compared to the web forum posts that contained very low quality unmoderated, not-curated, and too often broken/deleted and scattered content.
In the late 80's early 90's, the main source of knowledge was Usenet NNTP forums.
In the late 90's to early 2000's it started to shift to forums, problem forums were low quality, did not last
When StackOverflow arrived, it was refreshing, curated content, limited duplicates, made it a quality source. And yes I was also answered "Why would I want to do it this way?", or even "What was I trying to do?". Then I reformulated my question, and admitted it was not clear or not focused. And this alone helped me find a solution. Because what StackOverflow did really well, is force people to write quality questions, questions that would match many other people questions and needs.
As for AI LLMs, I am constantly horrified by their hallucinations, standing up on lies, wrong code, stupid recommendations, proposal of decades obsolete syntax, inability to check/verify/spot their own in/accuracy, invent API methods, loosing criterion during conversation.
The biggest issue with LLMs is that they output what can fit best statistically, regardless of pertinence or accuracy and it has no verification pass, cannot run code portion, cannot debug code portions even from own output and it is wrapped with meaningless excuses, chronic liar promises.
I am very sad to see StackOverflow"s decline.
I am even more worried to be redirected to LLMs as a "replacement".