Skunks, like other animals, have an instinct to find food and water, but the specific reasons they are digging in your yard is very dependent on where they live and the environment around them. Some areas are naturally more prone to rodent problems than others.
In addition to finding food and shelter, skunks also use their scent glands to communicate with other members of their family and community.