The error here is thinking that the rat is in danger when doing its job and that the word heroic cannot be used to describe non-human.
From Webster, heroic: of a kind that is likely only to be undertaken to save a life.
This rat's work has saved lives. So, we can call it heroic. It is not even anthropomorphic strictly speaking.