Why do some birds swallow stones along with their food?

The addition of grit / small stones etc. to a bird's food settle in the gizzard, which are then used to help soften and crush food.  Numerous extant and extinct species have used small stones etc. in this way; they are known as gastroliths: http://en.wikipedia.org/wiki/Gastrolith