Shared accounts/mailboxes are typically generic accounts that more than one user has access to. For example, an email account for a specific project, task or department. (ie. a Department account where a number of users could access the email). A shared account can be set up either by:

Until all shared mailboxes are migrated at the end of February 2022, a shared mailbox can be either a Microsoft 365 account or a Connect (aka on-prem) account.

Adding a Shared account