Counterfactual prediction is not only for causal inference