Ant and Butterfly Symbiosis

Why would ants and a butterfly caterpillar possibly need each other? Possibly for something sweet?