I have a friend who does this when diving during the winter. It keeps her warm, or so she says.
Depends on the water temp, if she’s winter diving it does provide a short term burst of warmth. Then you realize why you’re smiling and pull the suit away from your body to flush out the pee.
Do it up current from your dive buddy and then laugh. Ahh the joys of juvenile behavior.