Building a reactor was a step on the way to building a bomb.
Two isotopes were used for fission bombs in WWII: Uranium 235 and Plutonium. More than 99% of naturally occurring Uranium is Uranium 238, which will not sustain a chain reaction necessary for a bomb. There are only trace amounts of Plutonium in nature, but it can be produced in reactors that use U238 for fuel. So, to make a fission bomb you need to either separate U235 from U238 or build a reactor to create Plutonium.
It's worth noting that the shortage of heavy water was no accident. The Allies sabotaged the heavy water production facility in Norway that Germany relied on[1].
________________________
[1]https://en.wikipedia.org/wiki/Norwegian_heavy_water_sabotage
Nitpick. You can't power a reactor with U-238. You breed U-238 into Pu-239 and that can power a reactor.