it's actually a fetish called Somnophilia: aka sleeping beauty fetish. Edward happens to suffer from this....
Also it is a psychological disorder called sexsomnia. It's when you have sex, masturbate, or fondle a partner in your sleep.