The distinction between developed and developing countries you think is so clearcut is actually not so clear
"the Supreme Court upheld the constitutionality of sodomy laws in Bowers v. Hardwick in 1986. However, in 2003, the Supreme Court changed opinion and reversed the decision with Lawrence v. Texas, invalidating sodomy laws in the remaining 14 states: Alabama, Florida, Idaho, Kansas, Louisiana, Michigan, Mississippi, Missouri, North Carolina, Oklahoma, South Carolina, Texas, Utah and Virginia."
https://en.m.wikipedia.org/wiki/Sodomy_laws_in_the_United_St...