Its about air pollution not CO2, that’s why diesels are banned.
from TfL:
“To be compliant a diesel car must have NOx emissions equal to, or less than, 0.08 grams per kilometre and Particulate Matter emissions equal to, or less than, 0.005 grams per kilometre.”