Instinct/genetically-determined, not a conscience decision. The individual parasites that caused this had a survival advantage over those that did not. No thought involved anymore than a plant growing toward light.