If the account is synced from on-prem then it needs to be enabled on-prem for the remote maibox:
https://learn.microsoft.com/en-us/exchange/hybrid-deployment/create-cloud-based-archive
If the account is created and managed in 365, then you enable the online archive directly in Exchange Online.