flatpak/snap still rely on libraries. This only relies on filesystem features and kernel functions which are, for all intents and purposes, 'static' (because of the "Never break userspace" policy). As such, the resulting binaries (stripped of GNU_* symbols) can run on a musl system. I've had a lot of trouble getting flatpak programs to run on my musl system.