Mastodon is a more mature software so they probably had more time to work on extra features like cross-platform federation.
You would think so, but afaik Mastodon hasn’t made any changes to federation in years. Which means it is left to other projects like Lemmy to reverse engineer whatever Mastodon is doing and implement that, no matter what the standards say.