The issue is that when there is active discrimination against men who have sex with men, those men are more likely to contract HIV – for a whole bevy of obvious reasons.
Looking at this from the perspective of HIV spreading fastest in "groups that are more liberal" is obviously missing the whole point.
It is correct that men who have sex with men are far, far more likely to be diagnosed with HIV in developed countries – this is kind of disconnected from the issues being discussed in developing countries, where infection of young girls in particular is far more of a problem.