If you still have synced users from on-premise active directory you should keep at least one Exchange server to be able to edit Exchange attribute on on-premise active directory.
For your information synced objects in Entra ID cannot be modified from Azure portal , you can modify it only from on-premise Exchange server or active directory.
For more information please read this Microsoft article:
Why you may not want to decommission Exchange servers from on-premises
Please don't forget to accept helpful answer which helps users to know the answer solved the author's problem.