It's a fairly crude and not always reliable method they use to determine where you are, it's also why if you're not in the UK you get stuck with the international version of the BBC website with adverts, and why you can't access the National Lottery site from outside the UK.
My previous employer ended up with an IP address allocation that was registered as being assigned to another country, based on the supplier, so various UK-based things wouldn't work properly.