I was wondering how viruses such as herpes and HIV evolved their lysogenic cycle. (hiding in the cell's dna for years before reappearing and launching a full scale attack) Evolutionarily speaking it doesn't seem to help the virus in any way. Although in the end it is more effective at launching an attack on the human body. I wouldn't expect evolution to aim the virus to evolve into something that kills its host. Other than animals eating other dead animals infected with the virus that killed them, I can't see how evolving a better attacking mechanism helps viruses. Any input?