I don't know much about ivermectin (could be useless, don't know or care), but your framing makes as much sense as saying people think injecting mold in their butt will cure syphilis.
Many medicines have multiple uses that are not at all related. For example, Botox is used for stretching old skin to look nice but also used to treat migraines. Ketamine is horse tranquilizer but is also used to treat depression, etc
(...much like your comment) It's an anti-parasitic medication. Doses much higher than the maximum approved or safely achievable for use in humans would be required for an antiviral effect.
Research failed to confirm the utility of Ivermectin for treating COVID-19. [1] Much of the research indicating otherwise was fraudulent or misleading. [2]