For coarser soil types near the footings' bearing surface (for which free water between soil particles can reduce bearing capacity), to limit the probability of excessive soil subsidence, which could lead to the cracking of foundations or building superstructures.
This is to limit the probability of compromised structural integrity, which could lead to:
This is to limit the probability of harm to persons.