It’s a long story, but part of the reason is that bacteria evolve resistance in the presence of the antibiotic, while here, the virus would need to randomly evolve it in the unvaccinated, then sustain useless adaption for a while until it gets the opportunity to infect a vaccinated person.