Why can't you use a CNAME at the zone apex?

BeginnerConceptDNS
Answer

A CNAME says "this name is an alias for another name" and cannot coexist with other records at the same name. The apex (example.com) must hold SOA and NS records, so a CNAME there would break the zone.

Providers solve it with ALIAS/ANAME or Route 53 alias records, which are resolved on the server side and return A/AAAA answers. In Route 53, alias records to AWS resources are free and follow IP changes automatically.

All Networking questions Roadmap: Networking for DevOps

More on DNS