Rabbits typically thump their hind legs as a way to communicate danger or alarm to other rabbits in the vicinity. This behavior is often seen in the wild when rabbits sense a potential threat nearby. The thumping creates vibrations that can alert other rabbits to be on high alert and ready to flee if necessary.