Scientific Explanation, Causality, and Agency (A Free Energy Account)