The state of retaining urine within the urinary bladder as a result of various medical conditions.