Search engine rankings do not depend on the location of website files. Therefore, changing hosting providers does not affect SEO results.
SEO, for example, is affected by a domain change, since the reputation and age of a domain name are taken into account when promoting it.