And all those things did make cars more expensive. Where the problem lies is when the government decides that manufacturers have to do some pollution control that is costly and makes virtually no difference in the amount of pollution reduced.
Here's an example from our water supply the EPA did back in the Clinton era:
The allowable level of arsenic in drinking water in the US was 50 ppb for decades. During the Clinton administration, equipment became available that could accurately measure smaller amounts of arsenic in water. The EPA passed a regulation reducing arsenic in drinking water to 10 ppb. That is they reduced it from nothing to a bit less of nothing. At 50 ppb it had no significant health effects. At 10 ppb nothing changed.
In places like Bangladesh where arsenic in drinking water is present in parts per million, a thousand times more than allowed in US drinking water, it's very much a health hazard.
The only reason the EPA could get the level in the US reduced was the new equipment could measure it. The result of this regulation was water companies had to buy tens of thousands of dollars in new equipment to make the measurements, then if they were above 10 ppb they had to add hundreds of thousands in filtration equipment to get below it.
That caused water bills in many parts of the country double, triple, or even quadruple overnight.
No discernable difference in health effects, but a huge cost to water users. The Biden administration, all-too-often is doing this sort of thing today.