Gays in DDR

Why attitude towards gays in DDR was more tolerant than in West Germany?