Revenant is a special form of animation that is imbued with a limited form of intelligence with which to make decisions that allow for them to get revenge on a target. This revenge always consists of killing the target. Maximizing their suffering in the process if possible.
Once the target is dead, the entire reason motivating the revenant is gone and they collapse into a pile and quickly decay.