ActivityPub enables a wider network though than Mastodon and Threads. First of all, it enabled an open source ecosystem of platforms that clone functionality of the corporate platforms. This is the essence of what makes the 'fediverse'. Imagine if YouTube, Reddit and Twitter users could just 'talk' to eachother, as if it didn't matter where you posted. This is what the fediverse enables you, only the software here is called PeerTube, Lemmy and Mastodon respectively. There are many more open source example offering platforms for podcasts, blogs, music, you name it.
But also established communities are discovering the advantages of ActivityPub. Ever heard of Flipboard? It recently made the jump by integrating ActivityPub into its platform, thereby making themselves transparent to everyone on the network. And then there's Wordpress, that is actively developing its support for ActivityPub, potentially enabling tens of millions of Wordpress sites to be on the Fediverse.
Twitter is an island community, which doesn't 'talk' to other island communities like YouTube or Reddit. In contrast, ActivityPub actually creates a social web, that's centered around its users. This is clearly the way the internet will develop the next few decades with more bigger parties set to implement ActivityPub for their own island community, building bridges.
https://about.flipboard.com/inside-flipboard/flipboard-mastodon-federated/