How can hubbie have erections in sleep but not in me?

Erectile dysfunction. What you are describing is a condition where your husband physiologically can have erections as evidenced by having erections during sleep but psychologically he is having problems with sexual performance. This would something that he should speak to his doctor about as this low sexual libido (the desire to have sex) represent underlying depression.