In the context of cancer, necrosis often occurs within tumors due to various factors like rapid cell growth, inadequate blood supply, and hypoxia. As tumors expand, their central regions may outgrow their blood supply, causing cells in these areas to die and become necrotic.