For a detailed overview, refer to What is a Microsoft account?
The first Microsoft account added to the device (e.g. Hotmail, Live, Xbox, etc.) becomes the primary account and can only be changed or removed by performing a hard reset. If you have multiple accounts, you need to decide which one to sign in to first.