It doesn't, in general, affect gay people more; everyone is susceptible to HIV. The idea that it specifically targets gay people is, indeed, a myth.
But it first cropped up in the gay community and, since gay people – generally – aren't having sex with non-gay people, it spread in the gay community first and affected that community first.
It's more about the material, historical events playing out in that particular order than anything specific to gay people.