Why do We Need Sand Filling in Footing?

Every time we start a foundation work, we will fill “X” inches of sand (specifically river sand) and then “X” inches of PCC bed under every footing. The purpose of this may differ due to the soil condition and the need. sometimes we skip this (rarely).