ANywyas, yeah, subs generaly don't stay around long enough to deal with survivors.
Well, you'd be surprised. In the early days of the war, the (German) sub would usually surface, help survivors set their lifeboats up, give them directions to land, give them food, water, and sometimes alcohol, and even rarely radio the position over open airwaves so friendly ships could collect them.
There's also the case of Wernher Hartenstein (google him if you're interested), who picked up every single survivor from the ship Laconia, to escort them to dry land, but was attacked by a US aircraft despite having a large red cross flag, which led to the "Laconia Order" forbidding the captain from assisting the survivors.
In the pacific, however, the goalposts were moved a lot, and it was pretty savage, especially considering the presence of sharks.
For example, survivors from the USS Arizona were many when they went into the water, but the majority of them (who spent several days in the water)were eaten by sharks.
There's incidentally also a case of an unarmed US ship sinking a Japanese submarine using potatos
