Moreover manufacturers have been reducing their carbon footprint lately. As an example VW reports that 70% of the energy the use in plants is provided by renewable sources.
That being said while emissions rules have been getting more stringent over the years, they're increasingly being followed through introducing EVs, not improvements in engine efficiency.