Laryngectomy is typically performed to treat cancer that originates in the larynx. It may be recommended when other treatment options, such as radiation therapy or chemotherapy, are ineffective or not viable. The primary goal is to remove the cancerous tissue to prevent the spread of the disease and improve the patient's prognosis.