Read the history of the "Kill the Gay's" bill yourself, that's why I linked it
https://en.wikipedia.org/wiki/Uganda_Anti-Homosexuality_Act,_2014
"According to a reporter in Africa, "Africans see homosexuality as being both un-African and un-Christian"."
"From 5 to 8 March 2009, a workshop organised by the Family Life Network, led by Ugandan Stephen Langa, and entitled "Seminar on Exposing the Homosexuals' Agenda" took place in Kampala, the capital of Uganda. The workshop featured three
US evangelical Christians: Scott Lively, an author who has written several books opposing homosexuality;
Caleb Lee Brundidge, a self-professed former gay man who conducts sessions to heal homosexuality; and
Don Schmierer, a board member of Exodus International, an organisation devoted to promoting
"freedom from homosexuality through the power of Jesus Christ"."
"Kapya Kaoma, an Anglican priest from Zambia, was in attendance and reported on the conference. Lively asserted in his workshops that legalizing homosexuality would be akin to accepting child molestation and bestiality. He also claimed that gays threaten society by causing higher divorce rates, child abuse, and HIV transmission. He said that US homosexuals are out to recruit young people into homosexual lifestyles. According to Kaoma, one of the thousands of Ugandans in attendance announced
during the conference, "[The parliament] feels it is necessary to draft a new law that deals comprehensively with the issue of homosexuality and ... takes into account the international gay agenda.... Right now there is a proposal that a new law be drafted.""
So basically what happened is three American Christians went to Uganda - told them a bunch of lies - the Ugandan parliament believed them and drafted legislation against homosexuals based on an extremist interpretation of Christianity.
Now if you want to deny that Christianity had anything to do with it, be my guest, it wouldn't be the first time you've denied reality. The fact is there is no legitimate reason outside religion to hate homosexuals or homosexuality, and certainly no reason to suggest the death penalty for "offenders".