Individuals may take a name from the place they live or work.
In Norway, it was common to use the name of the farm where you lived. If you moved to a new farm, you would change your name. When surnames became compulsory, many took their "farm name" as a surname.