Morning Wood
The REM state of sleep is when dreams occur. You are more likely to awaken when you are having an erection since most people awaken either after or during the REM state of sleep. Your morning erection isn't often brought on by sexual dreams, though.