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:

A shared mailbox can be either a Microsoft 365 account or a Connect (aka on-prem) account.