Some drugs have a diuretic effect. The kidneys then excrete more water than is normally the case. This ends up in the bladder and leaves the body by urinating.
If you lose too much water by urinating and sweating a lot and drinking too little, you can become dehydrated. There is a shortage of water in the body.