Maybe they make the subs out of magnesium.
There are reports that our S2G reactor on USS Seawolf, SSN-575, and possibly some Russian Alpha class submarines had a liquid sodium cooled reactor. In a ship surrounded by water, I would not be comfortable with large volumes of hot, highly radioactive liquid sodium under pressure.