Rainfall is a depth
Precipitation is the depth, in millimetres, that rain or snow would reach on flat ground if none ran off, soaked in or evaporated. Snow and hail are measured as melted water. So 10 mm of rain would leave a 1 cm layer of water. Because it is a depth, the figure compares the same way for a small yard or a whole region.