I’ve made the same personal observations.
Ketogenic diets have also been used for a century to treat epilepsy in children, so effects might not be limited to the gut. Maybe it’s ketone bodies as an alternative fuel for the brain that is doing the trick.