Everyone developed nuclear reactors back in 50's to have nuclear weapons. The main reason to use uranium rather than thorium was driven by the weapons program.
But none of the modern reactors used in France or Germany, not to mention new ones built in Bangladesh, can be used to make nuclear weapons.
What France did however was the 70's civilian nuclear power which allowed it to decarbonize its energy sector at unprecedented scale.