SO did that all to themselves when they decided they didn't want a community to form and that only question and answers mattered. The moment something else allowed to have a better way to get your answers, there was no reason to go there, because there was no community. I still don't understand why anyone would go with that whole "no conversation please"
They also had the problem that easy questions would get downvoted for being too easy, and hard questions would just not get answered because they weren't seen in time by the narrow group of people who could answer so they get buried by the algorithm. Working in something of a less common niche myself (embedded Linux), I never had questions get answered. I believe the question ranking systems and moderation policies really only worked for questions about new, popular web frameworks.
It was ChatGPT which did it in, but it could've been anything. It could've been a new group of people with some clout starting a fresh new knowledge site. People were ready to abandon SO.