Why is a computer virus harmful? For the same basic reason that biological viruses are: they damage components that keep systems healthy.
Some are relatively benign - they generate annoying, juvenile messages or crash the system once, then go away. But many are specifically designed to do substantial harm - by deleting files needed to run [...]