In Android 10 (MIUI12), there is a switch to prevent apps from being manually killed from inside the switcher panel.
When clicking kill all (X) it kills all apps but the ones protected by the switch.
I did protect one app already once but are unable to find the relating setting page again :-(...