They never had a stake at any point.
The connection is that 2 of the main people involved originally (jimmy & angela) had a lot of ties to wikimedia, but they were doing wikicities/wikia/fandom as their own thing, not as part of wikimedia.
Also long ago there was some minor connections. They briefly shared an office like 15 years ago i think, and they tried to jointly develop a wysiwyg editor back in like 2012 (wikimedia did most of the work i think, but wikia leant a few devs to the project at one point) which eventually became the mediawiki visual editor.
Anyways totally separare orgs.
To be fair I think you could argue we're actively witnessing a cautionary tale about one founder having large interests in both a nonprofit and a related for-profit company with the ongoing Wordpress.org/Automattic/WPEngine drama.