Aging affects bladder function by reducing its capacity and increasing the likelihood of involuntary contractions, leading to more frequent urination and potential incontinence. These changes are due to a combination of structural alterations in the bladder tissue and changes in neural control mechanisms.