Surgical interventions are considered when non-surgical treatments, such as medication or lifestyle changes, do not effectively manage the condition. For instance, if a patient suffers from severe pain due to endometriosis and does not respond to hormonal treatments, surgery may be recommended to remove the endometrial tissue.