Because your connecting to a new network.
You have to setup a new network connection in windows.
Its a different location, and network the config needs to be stored and set for the other network you use in windows when your using your friends network.
It need to identify the router and its settings, the new gateway ect.