Cancer cells have a high demand for glucose, which they use for rapid growth and proliferation. By restricting carbohydrates, the ketogenic diet aims to reduce glucose levels in the blood, potentially starving cancer cells of their primary energy source. This metabolic shift may make it more difficult for cancer cells to thrive.