Viruses mostly use your own cells machinery to replicate. Any drug that targets your own cellular machinery would be toxic. In addition, different viruses use very different machinery so one drug tends to only work well for one type of virus (with dine exceptions). As a result there are fewer targets for antiviral drugs that are specific to the virus.
Meanwhile bacteria use different machinery from your cells. There are a lot more targets and a lot more similarity between different bacteria allowing for broader spectrum drugs.
Latest Answers