Many states in the US are confirming there is community spread happening, i.e. it's not restricted to a subset of the gay or hetero community. Here's Seattle for example confirming there are cases with no known sexual encounter or link: https://publichealthinsider.com/2022/07/06/monkeypox-update-...
Yes, there are non-gay people who get it. But gay men, and particularly people who have sex with a dozen different partners in a week (not many straight men in that particular group), are much more likely to contract it. Efforts to limit the spread of monkeypox should be targeted at the demographics most likely to contract it, as you get much more bang-for-buck that way.
There is nothing inherent about the DNA of this virus that makes it target men, gay men, or men who have sex with men. It will infect any human in the wrong place at the wrong time, period.