Why must kidneys excrete water in the urine?

Kidneys must excrete water in the urine so as to maintain homoeostasis in the body. The kidneys will excrete concentrated urine.