There’s more to the ivermectin story than having anti-parasitic properties, even though that’s how it became famous. It also appears to have anti-viral properties [1]. And there have been 60+ studies showing its efficacy [2]. Just because it has anti-parasitic properties doesn't mean it couldn't also block biological pathways in viral infections as well.
[1] https://www.sciencedirect.com/science/article/pii/S016635422...