From what I understand, some British colonial anti-homosexuality laws (since repealed in the UK) are still on the books in many African nations. This and the presence of current American evangelists are largely responsible for the severe anti-LGBTQI+ laws around the continent.