Residence is a term of art within the meaning of immigration law and is not synonymous with physical presence.
In immigration law, there are some terms of art.