Just different tech used most likely. Mastodon is a native app and Threads probably something like React Native, so it has a JS runtime inside and a bunch of dependencies.