Evolutionary origin of anxiety