Why have gonorrhea and syphilis become so common?

Rates of both actually have decreased. Syphilis was at its peak in the 1940s, and gonorrhea in the 1970s.