My uncle used to hang out in those public parks after dark where gay men would solicit sex - from each other, from sex workers, and (when they were particularly unlucky) from undercover cops.
Having sex with a partner in your home was dangerous because it was too identifiable. Your neighbors, your landlord, your family, your friends, any one of them could happen to notice if you brought a boyfriend or a one night stand home, and this was before we had any right to privacy in our homes.
So anonymous sex in the park was SAFER for gay men. As long as you didn't draw the short stick and snag a cop. A cop who would, just as they often do today with sex workers, happily have sex with you before cuffing you, walking you into the station through every reporter in town, and splashing your name and face across the morning paper with a sodomy charge. Then your life was effectively over. And they would leverage that to make you tell them names, give up others to have their lives ruined in the hopes of salvaging what was left of your own.
My uncle came a little too close one day, nearly got caught up in a raid at the park he was at with some friends. He illustrated children's books for a living. If he was caught he would never work again. So he fled. Borrowed some money from my mother and *fled the country*. He only came back once a year, long enough to fulfill visa requirements. He only came back with his boyfriend in 2005 when my mother assured him that things were safer.
If the enforcement of these laws could ruin lives like that back then, how badly do you think it could go for us in the era of unprecedented near total surveillance? Our memories need to be long enough to remember that these laws and the methods used to enforce them are not hypothetical. They have already happened and ARE already happening. There is precedent, there are known mechanisms, and there are known ways to gum up the works too.