Lol, they only surveyed 189 gay men for this who had prostrate cancer.
"Participants were 189 gay, bisexual, or other men who have sex with men, who completed online surveys in 2015. Linear regression analysis found that participants with cats and participants with dogs had lower mental quality of life scores than participants without pets."
The Influence of Companion Animals on Quality of Life of Gay and Bisexual Men Diagnosed with Prostate Cancer
There has been almost no research on associations of companion animals with quality of life in sexual minorities. Because gay and bisexual men have less social support than their heterosexual peers, some have argued that pet companionship could ...
www.ncbi.nlm.nih.gov
So this is a survey of a particular group of people, and not even a sample from the general population of gay men.