The biological basis of teleological concepts