Huck thinks that, to be truly good, one must take an interest in marginalized and misguided peoples. Note how it is after realizing that the robbers must have drowned that Huck sleeps like a dead person himself, both because he is exhausted, but also because he is, maybe subconsciously, experiencing what it is like to be dead, taking the ultimate sympathetic interest in the robbers.