Beer makes you pee a lot because of the dehydrating effects of the alcohol. Same with caffeine.
I love my coffee and beer...but I need to drink more water throughout the day to make up for the lost hydration, or I get foggy headed...and end up drinking more coffee...which is a vicious cycle.