Viruses do indeed mutate, but it's because they're evolving, and their evolutionary goal is to basically infect as many lifeforms as possible. They can do that better if they are more contagious, and less harmful. I'm not suggesting that viruses plan their evolutionary future, but ideal evolution is to be less severe, to the point of being completely harmless.