Why does UTI cause acute bacterial prostatitis?

If you have a urethritis or cystitis, urine containing bacteria can flow backwards to the prostate via the posterior urethra and prostate ducts, causing prostate infection and acute bacterial prostatitis.