I remember when SO had codegolf on the main site. Maybe if they weren't such killjoys people would have still been interested in participating in some programming oriented community even though AI displaced the actual writing of computer languages.
I feel like the "repository of knowledge" identity was pretty clear for around a decade (at least for main Q&A, not Chat or Discussions). It was inconsistently enforced because the volume of low-quality questions exceeded the ability of the "moderators" to enforce it. At its peak, the backlog of questions in the process of being closed was about a full month's worth of question volume (this doesn't include questions that did get closed or questions that didn't yet start the process of being closed).