Releasing bodily wastes in a dream suggests a need to release repressed emotions and/or anxiety.
At times urination may have sexual connotations.
Many people dream about the need to urinate which wakes them up and then they realize that they need to use the bathroom.
At times the dream triggers the physical sensation and other times the physical sensation may become a part of the dream.