That's because the certificate is used to determine if the IP address you're connecting to has control of the domain name you expected to visit.
Were the certificate to contain an IP address (or IP addresses), it would need to be updated every time the site started or stopped using a public-facing IP address.