https://fsr.eui.eu/regulated-access-to-incumbent-nuclear-ele...
France chose to use the mechanism of ARENH. This isn't an EU thing.
That's usually how that works. The EU makes rules and national parliaments create local laws to comply.
Of course they could have chosen another way to comply, for example breaking up EDF. But they didn't want to do that, probably for good reasons.