The people of Malaysia did not decide this or many of the other anti-gay laws. The anti-gay laws in Malaysia are the result of a combination of factors, including the country's Islamic heritage, British colonial rule, and conservative social values.
The Syariah Penal Code (SPC), which criminalizes homosexuality, was introduced in 1985 by the then-Prime Minister, Mahathir Mohamad. The SPC is based on Islamic law, and it is enforced in the states of Malaysia that have a Muslim majority.
The Penal Code, which is applicable to all Malaysians, also criminalizes "carnal knowledge against the order of nature", which is interpreted to include homosexuality.
In addition to these laws, there are a number of other factors that contribute to the discrimination against LGBT people in Malaysia. These include social stigma, religious pressure, and the lack of legal protection for LGBT people.
The SPC is a specific set of laws that are based on Sharia. It was introduced in Malaysia in 1985 and it is enforced in the states of Malaysia that have a Muslim majority. The SPC criminalizes a number of activities, including homosexuality, apostasy, and adultery.
The SPC is not universally accepted by Muslims. Some Muslims believe that it is too harsh and that it does not reflect the true teachings of Islam.
It is important to note that there is a growing movement in Malaysia to challenge the anti-gay laws. In recent years, there have been a number of protests and demonstrations against these laws. There is also a growing number of LGBT organizations working to promote equality and acceptance for LGBT people in Malaysia.