Just like fixing a bug superficially instead of going for the root.
If you wanted donuts you could've just get them in the first place.
I am not saying the results aren't positive, or that they aren't better than nothing. But I don't think this solves anything in the long term, and the manipulative and "the ends justify the means" approach rings the "should this really be done?" alarm bell in my mind.
If this is true, then the alarm in my mind won't ring: The lotteries led to a 21.4 percent reduction in HIV incidence among participants over a two-year period, and a reduction of more than 60 percent among participants identified as “risk-loving individuals” — those who were identified at the study’s start as people who enjoyed risky behavior."
Punishing HIV positive people (for example, by making it illegal for them to enter the country) contributes to this taboo. Giving a government-mandated lottery ticket mitigates the taboo, and it's my belief that this will have lasting positive consequences even after the lottery goes away.
Also, people not getting infected today are not infecting people tomorrow (exponentially). Stopping infections today is exactly the right thing to do for the long-term.