Religion usually prohibits things that have a bigger bad side or loss. For example, gambling can have a bad impact if you are addicted to it, which can harm many people. Then prostitution has detrimental sides such as the potential for contracting dangerous diseases.
However, from a political perspective, of course these two things can be profitable for the country because they can be taxed, which is why not a few countries legalize gambling and prostitution simply to be able to take these profits as state tax income.
For people who are not religious, I don't think there is a problem, they can do whatever they want as long as it doesn't conflict with the rules that apply where they live.
I agree with your opinion. The rationale behind this prohibition includes the potential for addiction, financial ruin, and the exploitation of vulnerable individuals. Gambling is considered haram (forbidden) in Islam. The primary source of this prohibition comes from the Quran, which states in Surah Al-Baqarah (2:219): “They ask you concerning wine and gambling. Say: ‘In them is a great sin, and some profit, for men; but the sin is greater than the profit”. Additionally, hadiths (sayings and actions of the Prophet Muhammad) also strongly condemn gambling.
While there is no universal Christian stance on gambling, many denominations and individual churches view it negatively. Some Christians argue that gambling goes against the teachings of Jesus, who advocated for care and responsibility towards one’s neighbours. Moreover, they believe that gambling encourages greed, dishonesty and covetousness, which are considered sins in Christian doctrine. However, the Catholic Church, for example, does not condemn gambling outright but teaches that it should not be engaged to the point of harming oneself or others.