They don't just protect them as a food source. Some wood ants will literally farm them. If a they expand or a tree isn't producing enough sap, they will move aphids to new trees putting them on a new sap source so that they can "milk" them for honeydew (aphid excreted sugar which is a major food source for wood ants).