It's often not automatic that it follows your personal residency. The most common corporate residency rule is where management and control is performed. You can be personally tax resident in a country without physically being there, and then it would be clear thsg the company is not run from there. Likewise you may have a valid reason to run the company from another country than where you are resident.