In Leviticus 15:16
16 ‘Now if a man has a seminal emission, he shall bathe all his body in water and be unclean until evening.
In Deuteronomy 23:10
10 “If there is among you any man who is unclean because of a nocturnal emission, then he must go outside the camp; he may not reenter the camp.
Are the Scriptures holding a man responsible for the character of the dream? I ask this because "nocturnal emission" is also known (maybe only more recently) as "wet dreams" (here the word dream). According to Johns Hopkins All Children’s Hospital,
Wet dreams usually happen during dreams that have sexual images. Sometimes guys wake up from a wet dream, but sometimes they sleep through it.
I doubt this passage to be about sexual intercourse.