It also explains Anna's feelings or feeling "safe" with Stern. I don't mean as in sexually safe but gay men are typically highly trusted friends to females who have no problem with having gay men as friends, normally the female will trust her gay men friends more than she would trust her female friends. I don't think Anna felt 100% comfortable with straight men ever.
Anna's diaries supposedly say she hated sex.