Not a technical requirement. Subject alternative name (SAN) certificates support IP addresses.
Unlike the Common Name, which is arbitrary human text (so e.g. " oops.example" is a valid name despite that space at the start, as are "c-programming.example\0\0\0" and "Ł0Ł.example") the SANs are defined so that it's harder to screw up and a machine can reliably just bit-for-bit compare the data. There are two main kinds: IpAddress SANs are defined for the IPv4 or IPv6 address just as bits, you can't express 200.300.400.500 as an IpAddress, whereas that's a (stupid but) valid Common Name; DnsName SANs are defined using a restricted character set and as specifically the ASCII LDH DNS hostname subset, which makes it much less tempting to try to incorrectly write a Unicode name here, what's actually required is the ASCII LDH name, ie Punycode.