Prostate surgery is recommended for conditions such as prostate cancer, benign prostatic hyperplasia (BPH), and chronic prostatitis, aiming to alleviate symptoms and improve quality of life.