This happens when the potatoes are not quite cooked enough, also if you add cold milk/cream/butter before you mash the potatoes.