It’s largely historical. France heavily encouraged diesel cars for decades, so there’s now a huge installed base. Once you’ve done that, you can’t suddenly jack up diesel taxes without making a lot of people very angry (and probably setting a few cars on fire).