Graph Distance as Surprise: Free Energy Minimization in Knowledge Graph Reasoning