Some smartphone manufacturers implement particularly strict energy-saving regulations in their software. This causes apps to be terminated unexpectedly and, in the case of the realme XT, even the GPS functionality suffers, which means that the otherwise good smartphone is worse off than it should be.
https://www.notebookcheck.net/realme-XT-Energy-saving-isn-t-everything.450454.0.html