It's not. Even today, 67% of new cases of AIDs are among gay and bisexual men[1].
I don't argue that obesity isn't bad for you, but the issue is more complex, and I don't think it's right to stigmatize people for it.
[1] https://www.cdc.gov/hiv/group/msm/index.html