

Mastodon is just one of many applications that uses AP for their own custom purposes. MissKey and derived software has some kind of emoji response feature to posts that’s basically unimplemented anywhere else. Lemmy’s boosting trick to make comment sync make interoperability with timeline based social media a spamfest.
Maybe I should check again, but last time I looked into it there were no commonly used ActivityPub compliant servers. Everyone does their own thing just a little different to make the protocol work for their purposes. Even similar tools (see: MissKey/Mastodon, Lemmy/Kbin) took a while to actually interoperate.
As far as I can tell, the idea behind the original design, where servers are mostly content agnostic and clients decide on rendering content in specific ways, hasn’t been executed by anyone; servers and clients have been mixed together for practical reasons and that’s why we get these issues.
If you have your client configured for IMAP, Thunderbird will synchronise with the new server.
If you did not transfer your emails from your old server to your new server, that means the new state is “empty inbox” and synchronising means “removing everything that’s available locally”.
To fix this, either do a server-to-server transfer from the old email provider to the new one (there are tools to do that, like imapsync), or try importing emails from a backup into Thunderbird after synchronisation succeeds, so that Thunderbird will upload the messages. It’s possible that you will need to use a tool to rewrite the message IDs so that Thunderbird treats the messages as new items.
If you have already cancelled your old server provider (so a server-to-server transfer is not possible), restoring from backups may be your only solution.
If you don’t have any backups, your email may not be lost. The first thing you need to do is copy Thunderbird’s data folder to a backup location, just in case Thunderbird tries to do maintenance on the file while you’re performing recovery. Then, use a tool like Thunderbird Reset Status (I can’t quickly find a more up to date tool but they probably exist) to unmark the emails in the Thunderbird mail store as deleted. Then set up backups for your new mail server.
If you use the trick above and Thunderbird starts deleting emails again, repeat the trick but break the email account settings first. Then, set up a second connection to your email account, drag over all the undeleted emails so they get uploaded to the new server.