Some cases result from bacterial infection of the prostate gland and others, which are more common, from a poorly understood combination of noninfectious inflammatory factors, spasm of the muscles of the urogenital diaphragm, or both.