Urinary incontinence occurs when a woman is unable to control the flow of urine, causing her to urinate involuntarily.