There are various types of computer infections in the world that when you get infected most technician's usually would tell you that you have a virus instead of something else.
In the computer world these are the types of computer infections you can get such as a Malware, a virus, a worm, a trogan, spyware, adware, keylogger, a bot, a botnet, a rootkit and ramsonware.
There all bad news for technicians when they appear on your computer. They not only take control of of how your computer performs but what it does on a regular basis.
Now If I was going to explain to a customer that they had a Rootkit, it could take hours or days to explain to them what a Rootkit does. Not all users are tech savvy to understand computers. So telling a user they had a virus is more understandable since everyone does get a virus and most user's are aware what a virus is. This is the reason many technician call infections a virus. In the end your computer gets infected the similar way and is inaccessible.
For those user's who really want to know the various types of virus infections in the computer world. Here is the list with a brief explanation on what it does.
Link