Tax.
For tax purposes, the main test for residence is the location of central management and control of the overall business.
In practice it is usually determined by the place where the directors meet.