Earlier quoted context omitted.
Because the locals don't want to, and you know it. Ask anybody in the streets about their opinions of gays, and you shall get your answer. It may be fundamental freedom for you, but for them its an outrageous act that deserves punishment. Don't like it, don't stay there, simple.
Meanwhile, Turkish men are the most metrosexual in the world, and let's just say it 's easier to get laid in Taksim than it is in the Castro. I feel that Istanbul is actually a far gayer city than San Francisco, but everybody stays in the closet in order to survive. You have a funny concept of free. If I am not free to be exactly who I am, then I am not free. If I am forced to follow a religion under penalty of death…
The entire point of democracy is it allows commoners to decide regulation, and you bet that if there was ever a true democracy in the Arab world, gays won't be welcome in it either.