When you look at ketogenic diets being used to control epilepsy you realise there is likely more to it than just behavioural.
You're also less hungry when you restrict carbs (bread, pasta, sweets, etc.).
They also might just work because they train your body to run off its energy reserves. Even in a "healthy" high carb diet, you are still requiring a constant intake of fruit/grains.