Rethinking cognitive biases as environmental consequences