Drainage bags are needed in several gynecological procedures such as after a hysterectomy, pelvic surgery, or cystectomy. They help in draining excess fluids, blood, or other fluids that may accumulate in the surgical area, thus preventing complications like infections or hematomas.