why is it good to pee after sex?

It's always been something I've heard women say to do straight after sex, but why?