Is this normal and why?

So this might be a weird question...When my man is asleep he very often gets a erection, I know it's normal to in the morning they say because they have to pee etc... but this is all through the night. Is this normal and why? Does anyone else's man have this problem?