Animals use their senses to gather information about the world around them. Animals have evolved different ways of detecting (hearing) sounds.
Some predators have very good hearing so that they can find their prey:
Some prey animals have good hearing to hear the predator coming:
Other animals detect vibrations in other ways - through their legs: