Rabbits thump their hind legs as a way to communicate danger or alert other rabbits in their warren of potential threats. This behavior is a form of warning signal to other rabbits that danger may be present, helping the group to stay safe and vigilant in the wild.