Hmmm. Hotmail.
You can try deleting the account and adding it back in.
If this is a POP account you can move your mailboxes to "On My Mac" by creating mailboxes and drag and drop.
IMAP accounts sync between devices and also remain on the server.
Use Mail on your Mac - Apple Support
Oct 11, 2018 - Use the Mail app to compose, reply to, and sort email on your Mac. You can also add and mark up attachments.
Add or remove email accounts in Mail on Mac - Apple Support
In the Mail app on your Mac, choose Mail > Accounts. Select the account, then deselect the Mail checkbox. Now the account's messages are not shown in Mail.
Create or delete mailboxes in Mail on Mac - Apple Support
In the Mail app on your Mac, choose Mailbox > New Mailbox. Click the Location pop-up menu, then choose where to create the mailbox. On My Mac: Mailboxes you create in On My Mac are local, meaning you can access them only on this computer.
Troubleshoot email problems in Mail on Mac - Apple Support
If you use Mail on your Mac, learn ways to solve problems when sending, receiving, and viewing emails.