Edit: to add to my comment, it's also a phase 3 trial, so the safety has already been proven before.
Don't test drugs on Africans: "why aren't drugs being tested on Africans?"
A little charity in interpretation goes a long way.
If you are talking about drugs for diseases that are a much more serious problem in africa than in the rest of the world - well doesnt that make sense? You dont test a new malaria drug in canada where there is no malaria. You test them where there is the biggest problem.
Globally, women and adolescent girls bear the highest burden of HIV, highlighting the critical need for effective HIV prevention options. In Sub-Saharan Africa, women and adolescent girls make up almost 60% of all new HIV infections. Stigma, marginalization, poverty, gender-based violence, and social inequities are some of the factors that have made women and adolescent girls especially vulnerable to HIV. PURPOSE 1, which enrolled cisgender women, will evaluate an investigational drug, lenacapavir, and an FDA-approved PrEP drug for people assigned male at birth, emtricitabine/ tenofovir alafenamide, also known as F/TAF or DESCOVY®, for PrEP. This trial is taking place in South Africa and Uganda and has completed enrollment.
Subsaharan Africa has the largest epidemic of HIV, that is why. Because you need a control group and compare the frequency of new infections.
It would make no sense to study HIV drugs in, say, Egypt, where the sexual mores are rather strict due to the conservative Islamic character of the society, and thus infection rates remain very low.
(Note that Egypt is also Africa, but probably the "wrong kind of"... at least as far as the fashionable racial classifications go.)
It's easier and cheaper to test new drugs outside the us/eu because laxer regulations.
Given your comments elsewhere I suspect you're claiming this with no evidence.
For other readers, this isn't true / it's drug dependent. Amongst other things: difficulty sourcing the correct patients; difficulty importing drugs, particularly because they're not yet approved; difficulty getting high quality or reliable labs; etc. As any ctm could have told you.
As for this drug: the US/EU don't have rampant hiv, esp with the use of PrEP.
The reality is that most clinical trials aren't successes. If you can get a huge cohort of people for relatively cheap elsewhere, you can screen a lot of promising but doomed tests at a cheaper price point, then only re-create similar testing on the most promising candidates in your lucrative markets.
There may be common reasons to trial there like it being cheaper or less regulated. But there is a good reason for this specific medication to be tested in those specific countries. Criticizing the study authors for being "cheap" is uncalled for in this case.
[0] https://ourworldindata.org/grapher/share-of-population-infec...
Hard to say, maybe it's not inconceivable that ~1% of potential patients in the US/EU/etc. might end up paying more than > 50%-90% of the people living Sub-Saharan Africa for whom getting the vaccine would make a lot of sense.