The point is whether it's adaptive, i.e. whether it has evolved because it is beneficial (such as our pain aversion), rather than arising as an unfortunate bug in the system (such as cystic fibrosis, a genetic disorder which seems pretty clearly not to be adaptive).