If you google for studies, at this point you'll see an abundance of research on this with positive results, which apparently was just getting started when they dug into it and perhaps not well known to the average doctor. My memory plus a quick look into one [1] suggests it's because brain tumor cells largely feed on glucose, whereas normal brain cells can also metabolise ketone bodies for energy. So you're starving the cancer of resources.
[1] https://nutritionandmetabolism.biomedcentral.com/articles/10...