Sure, but if you build a nuclear reactor suitably close to your city (!) it produces hot water directly in addition to electricity. It's just a much bigger pain to ship hot water over long distances than electricity.
It was Philippsburg was 30km to Mannheim, Could have send 3GW of thermal energy over.
Sweden's first commercial nuclear plant[0] was built right next to a newly constructed suburb precisely so that it could be used for district heating too. And also for producing small quantities of weapons grade plutonium, for... research purposes. Waste not, want not!
(It didn't last very long and was shut down in the mid 1970's, for somewhat obvious reasons.)
[0]: https://en.wikipedia.org/wiki/%C3%85gesta_Nuclear_Plant