How indeed. Yet Germany got rid of its nuclear energy capacity a few years ago.
Not the best decision, and a major reason why Germany uses so much coal and gas today. But outside some special circumstances nuclear isn't cost competitive with other renewables anymore, so for future plans it doesn't really matter
[0]: https://ourworldindata.org/grapher/electricity-prod-source-s...
https://app.electricitymaps.com/map/zone/DE/12mo/monthly
As other comments mentioned, in a more perfect world, they would've run those nuclear generators longer to avoid emissions. Alas, we live in an imperfect world. Keeping grinding towards net zero.