The main theme of the excerpt appears to be empathy and compassion, particularly highlighted by the companion's concluding remark about the narrator being an "unindifferent person" after witnessing their reaction to the rat.