Nocturnal penile tumescence (abbreviated as NPT) is a spontaneous erection of the penis during sleep or when waking up. All men without physiological erectile dysfunction experience nocturnal penile tumescence, usually three to five times during the night, typically during REM sleep.[1] NPTs are believed to contribute to penile health.[2]
souce: Wiki