Well, location is based on ip.


You might be in location A but the server you are connected through is in location B.


Servers can be located miles away - it's very common.


You can read more about geolocation technology here:

https://en.wikipedia.org/wiki/Geolocation_software