To understand behavior, we must look at its purpose in the context of survival and adaptation.