https://math.fandom.com/wiki/Math_Wiki https://encyclopediaofmath.org/wiki/Main_Page
And a few about engineering:
https://engineering.fandom.com/wiki/Engineering_Wiki
Plus a few about computer related topics:
https://dataengineering.wiki/Index
And various languages and frameworks have wikis too, like Python, PHP, WordPress, etc.
So there's definitely some interest in wikis outside of fandom topics. The Wiki listing pages on Wikipedia has at least 30% of the page listing wikis that don't involve a piece of media/fiction:
https://en.wikipedia.org/wiki/List_of_wikis
I suspect the disparity is probably because hobbies and fandoms could mostly only communicate via the internet, and naturally went from fansites and hobby sites to wikis. Meanwhile more academic subjects have an audience who seem to be unsure of the value of these sorts of free resources.