It seems more like Germany's leaders back then were more interested in appearing green.
One key quote is this one:
"The green movement is more interested in reducing energy consumption than in reducing emissions."
Which is of course not going to happen, so it makes little sense to wind down nuclear plants across the country.
The right thing to do would be to recognize the error from 2018 and start powering up those nuclear power plants again.