Well, yes, sleeping! Our brains have to do something while we sleep, but to assume that "something* has a functional purpose seems like a possibility, not a forgone conclusion.
I believe the greater purpose is the "garbage collection" of the brain's metabolic waste as well as the optimization of learning.