I don't know much, just read a few things here and there, but viruses can get less lethal as they mutate because a virus doesn't want to kill its host, it wants to spread. Killing the host usually prevents spread.
I don't think the virus "wants" anything at all, it's just that if the host dies fast there is no time to spread, so statistically speaking it is less likely to spread and survive.