That's only because SPAs routing maybe internal for that particular app. In that case, the UI/UX to end user is *only* possible and smooth when they hijack the back button as such.
I revently built an app with SvelteKit + Capacitor and had to implement the stack-based navigation one expects from a phone app myself.