the kind of dreams where you dream something & you wake up doing it are called lucid dreams, where you're not quite asleep but not really awake either so your body feels a bit confused & if you dream about peeing you may just do it!