all kinds of things, not just that. depends on which android version.
go look close at the permissions of some of the installed apps. for sure at least, the google phone app by default has permissions to alter system settings. this extremely powerful permission basically is nearly as good as root.
the way that phones come from the factory now is borderline Nineteen Eighty Four viewscreen style.