Active inference, causal cognition, and structure in the world