You have a local root certificate installed, AND software or a network device intercepting and modifying the communication. You are not using the certificate you see to communicate "with the site", you are communicating to that software or device, and in turn it is forwarding the communication back and forth with the site after doing whatever job it was set up to do. The site's real certificate is relevant to the communication between the site and the interception software. Hopefully that software is as rigorous about checking the validity of certificates as your browser would be, but sometimes they do a poor job. In the past some have been found that do no checking at all!
You can try some of the tests at
https://badssl.com/ to check this out. If you have a decent MITM it won't let you connect with the ones that are in red.
-Dan Veditz