The keto diet was originally developed to treat epilepsy in the 1920s, then started being used as a medical treatment for illnesses such as diabetes, etc.
Eating healthy can reverse illnesses. Patients with type 2 diabetes, for example, have been able to fully reverse their diagnosis and stop the need to take insulin pills and shots through a healthy, low carb diet.