It gets soft deleted on-prem - however the soft deletion time is by default only 30 days unless you changed it or the mailbox is on hold
https://learn.microsoft.com/en-us/exchange/recipients/disconnected-mailboxes/disconnected-mailboxes?view=exchserver-2019
See this section on how to work with soft-deleted mailboxes:
You can run this to see if any disconnected mailboxes still exist on prem:
$dbs = Get-MailboxDatabase
$dbs | foreach {Get-MailboxStatistics -Database $_.DistinguishedName} | where {$_.DisplayName -eq "<DisplayName>"} | Format-List DisplayName,Database,DisconnectReason