There’s some evidence that following a good diet helps people with MS avoid replapses. Assuming that a percentage of people with MS make it a point to have good diets to treat their MS, one can expect they will have a lower rate of cancer.
That could be it, also some of their medicines may have something to do with it. Any benefit that these people get like a lower risk of cancer, they really deserve. This can be a cruel disease.