You are taking about what people eat and I am talking about what our body does with what we eat (what it is broken down into as it is digested). It is the only source of energy for our brain and red blood cells. It also provides energy to other cells too but is not the sole source. Of course our body needs other nutrients, but the brain is especially dependent upon it. Our digestive system breaks down foods into glucose (and other things). Your example of Keto and other diets talks about what is eaten, not what our body makes from what we eat. If you ate no sugar (and there is "natural" sugar in many foods such as fruits), because your body breaks down food into glucose, you will still have glucose in your system. Of course consuming too much sugar is problematic and the diets you talk about help people not do that, but our body also makes glucose from what we eat, including things that don't have sugar in them.Glucose is absolutely NOT the "only" food for our brain. What is our brain comprised mostly of?
Anyone on a keto or carnivore diet (Especially a LION diet) will tell you their brains run far better in the absence of most glucose in the body. In most cases SUBSTANTIALLY better.
If you're on the S.A.D. then yes, your brain will choose glucose because there is a never-ending supply of it. That doesn't mean it's better, by any means. In fact there are plenty of studies to back up that our brains prefer fat when they're not overloaded with sugar.
Glucose is not the "only" food for our brain.
This article talks about some of this in layperson language (along with other common issues including consuming too much sugar)