The air is present in spaces between particles of soil. Animal living inside the soil get oxygen for breathing (or respiration) from the air present between the soil particles. However, when it rains heavily water fills up the spaces occupied by the air in the soil.In this situation, the animals living inside the soil have to come out of the soil to obtain air for breathing. For example, the earthworms come out of the soil only during heavy rains.