There are many antiviral medications on the market. The clinical reason for this is each medication is only effective against a small number of specific viral infections.
The class of medication used for treating viral infections rather than bacterial one is called antiviral drugs.