The CNAME decouples the domain name from the server IP, making it easier to change providers without touching the domain configuration.
The CNAME is useful when the hosting provider changes IPs: the domain keeps pointing to the provider’s name, and the provider manages the IP. It is also used for CDNs, cloud services, and subdomain aliases. However, a CNAME cannot coexist with other records at the same name.