Eeew...
When I was actively swimming and doing 50+ laps a day, I never pee'd in the pool. Even if it was at home, I would never pee in the pool. Doesn't matter how much chlorine you put in the pool, you're still swimming in your own pee even if it's relatively a small fraction of the volume of the water in the pool.
On the bike, the idea of peeing on myself and my bike sounds disgusting even if it's in the rain. The only time I pee while exercising is if I'm swimming in the ocean. Who knows what's in the ocean...