Rabbits thump their hind legs as a way of communicating danger to other rabbits. When they sense a threat or feel alarmed, they thump the ground to alert other rabbits in the area to be on high alert. This behavior is a part of their natural instinct to warn each other of potential danger.