The two typically do go together:
From Negative effects of homosexual relations (and heterosexual fornication)
"Young gay and bisexual men accounted for 84% (5,161) of all new HIV diagnoses in people aged 13 to 24 in 2020," and "in 2019, among transgender adults and adolescents, the largest percentage (93%) of diagnoses of HIV infections was for transgender MTF, and in 2019, diagnoses of HIV infection among adolescent and young adult males (85%) and females (12%) accounted for approximately 97% of HIV diagnoses (Table 8b).".
https://www.cdc.gov/hiv/images/group/gender/men/2020/cdc-hiv-men-diagnoses-bar-graph-700x318.png
https://www.cdc.gov/hiv/images/group/age/youth/cdc-hiv-youth-sex-700x698.png Likewise in 2014: https://supremecourt.flcourts.gov/content/download/242689/file/Debaun%2013-2336(2).pdf
In 2019, gay, bisexual, and other men who reported male-to-male sexual contact accounted for 86% of estimated infections among all men. (https://www.cdc.gov/hiv/statistics/overview/in-us/incidence.html)
As well as 80% of all new HIV cases (not just among men):
https://www.cdc.gov/hiv/images/library/reports/hiv-surveillance/vol-33/infographics/cdc-hiv-diagnoses-by-gender-infographic-1920x1080.png
In 2019, 70% of all new HIV infections in the U.S. were among homosexual men, and 63% of all people in the US with HIV were homosexual men. (https://www.cdc.gov/nchhstp/newsroom/fact-sheets/hiv/HIV-gay-bisexual-men.html)
In 2020:
https://www.cdc.gov/hiv/images/library/reports/hiv-surveillance/vol-33/Graphics-03.png?_=75165
https://www.cdc.gov/hiv/images/statistics/overview/in-us/HIV-in-the-US_2022-49-large.png?_=61599