Sand permits water to flow through soil to get to plant roots. Sand also loosens soil, making it easier for plant roots to break through soil and establish themselves.
Sand is added to change he texture of the soil or ground. This can keep the soil from hardening too much, and many landscapers use it under patios and walls.