So? That’s not different from decades of regulations in the car industry. You can’t sell a new car without safety belts, ABS, reversing camera, distraction detector, etc.
And (nitpick) this doesn’t require all cars sold to be electric. They have to be emission free.