Its interesting to think that a submarine would require air conditioning with average ocean temp being pretty cool. I guess it was because of the extra heat produced by the engine and other machines?
They have layers of insulation for both thermal and acoustic reasons.
Subs and torpedos are interesting to study since navies and inventors really struggled to make viable models, and probably a higher percentage of sub pioneers died than in aviation, which is saying something.