But certificates expire for a reason, don't they? The idea is that with enough time, the key could be cracked.
https://security.googleblog.com/2015/12/an-update-on-sha-1-c...
Even OCSP was affected: https://cabforum.org/2022/01/26/ballot-sc53-sunset-for-sha-1...
It's also useful to issue short lived certs and use the expiry date to handle revocation rather than maintaining a CRL.
Or, the cert could have been issued by an authority which issued the cert despite compliance problems.
Web PKI is different than code signing, but if you look at the discussions within the CAB forum, there are very good reasons to limit certificate lifetime.
Public CAs are not very secure as NSA proved and I am not sure why there is no better alternative yet.