The way one performs this exercise is essentially to tighten up their buttocks as if they are trying to prevent the passage of gas. Do this 20 times in succession and you're doing Kegel exercises. They are often used as a first step for patients with urinary incontinence. Incontinence absolutely can be temporary. Sometimes, when people undergo surgical procedures around the bladder or the prostate, they may experience temporary incontinence.
Infection can lead to temporary incontinence.
Those are really the big two. It can't hurt, may help. If it's the latter, that is a concerning symptom and needs to be worked up by a urologist. For the first category, the overactive or malfunctioning bladder, causes can include neurologic problems, they can include infection, cancer, or certain psychiatric medications. Finally, there is overflow incontinence.