When i sleep i don't dream every time but i still get erection when i wake up?

Yeas this is true case when you sleep you get every 30 min a erection this is so the blood go through the penis to keep it going and also prevent that you pee in the bed.