https://76crimes.com/76-countries-where-homosexuality-is-illegal/
Countries in Europe and the Americas had similar laws until relatively recently.
Today, laws against homosexuality in these latter countries have been repealed, and LGBTs there are accorded equal status in the eyes of the law.
When and how did this radical social change come about?