This occurs if the server is acting as an Active Directory Domain Controller (DC). Microsoft does not support changing the edition of a server running the Domain Controller role.
How to Verify If Your ISO or Install is the Evaluation Version Windows Server 2016 Standard Iso Not Evaluation