1 Because the glandulartube in genital system and urinary system are liking with each other, bacteria or other pathogen could pass the urethra and enter the testis or epididymis.
2 prostatitis, vesiculitis, and inflammation in the deferent dusts could spread to testis and epididymis and causes a orchitis and epididymitis. And as a result, epididymitis often occur with prostatitis, vesculitis and urethritis.
3 Some urine could go back to ejaculatory duct and causes a infection in epididymis. Bacuteria could also infect epididymis or the testis with urine through the lymphatic vessel.