Makes perfect sense when you consider the effort of getting a drug through all the test regimes which takes a lot of time and money.
If it turns out to be a beneficial treatment for something else or something new that pops up it would be silly to ignore it, the extra testing is relatively low hassle by comparison.
Some of the treatments for covid are repositioned drugs.