Evolution can be rephrased as: a function for maximizing genetic reproducibility. Everything else, including sleeping, is a consequence of - and in service of - this function.
Yes but in that case no reason to highlight fighting and fleeing. I'm just doubtful this "four Fs" from the parent comment is a good mnemonic. It feels more forced than anything and either includes too much or not enough.