They’re the paperclip maximizers of the animal kingdom. All a virus does is make more of itself. If it does, there’s more, if not, it goes extinct. They do it sloppy and mutate. If it does the thing better, there’s more of the new thing. If not, that new thing goes extinct. Once that’s been happening for billions of years some parts of these viruses will look pretty clever.