Do you hold someone responsible for actions outside of their control... say a diabetic in an automatous where there is absolutely no control?
Do you just lock up a mentally ill person who killed/attacked someone while quite literally out of their mind? I'd suggest the better course is holding them and treating them, they're a risk while they're ill, not more inherently dangerous than any other person.
It's the 'out side of one's control' where I differ. No one should be locked up for an attraction. It's acting upon the attraction that is criminal. Being gay is not a crime. Having non-consensual sex with another guy is still rape.