Some people never seem to be able to think clearly or focus while fasting, independently of any feelings of hunger. There is likely some biological variability here, but it could also be due to metabolic problems that are making it hard to provide the brain with energy during a fast. In some cases the fasting itself can help treat that, and it may get better over time.