Electricity production on land is mainly for civil use, with large installed capacity, so it requires a lot of equipment and space. Nuclear submarines only need to provide electricity and daily electricity. Imagine that ordinary diesel generators could provide nuclear power. How much fuel and space does the nuclear electric propulsion plant need? But to be honest, it still occupies a large space at the tail of the submarine and requires a thick layer of protection.
This is mainly because of the technology and its use value.
Technically speaking, the United States and France all have nuclear-powered aircraft carriers, but the Soviet Union, which dominated for a time, only had nuclear-powered cruisers.
The role of the destroyer is air defense and anti-submarine warfare. If something happens, it will even intercept the opponent's missiles for the aircraft carrier. They are therefore numerous and easy to use. They don't need to use nuclear reactors. After all, nuclear reactors are difficult to maintain and prone to errors.