The reason for this is that alcohol changes the body's production of the anti diuretic hormone, ADH, which regulates the amount of water in the blood. This makes your brain think it should reduce the amount of water in the blood moving it to the bladder. It's also why you get hangovers, i.e. dehydration.