He lost to the Lingering Will, which is Terra. Either the Lingering Will got a sudden, huge powerboost to make it stronger than Terra originally was, or Terra was always strong enough to take down Xehanort (or at least an enraged Xehanort). Either way, we have a teenager beating a guy who's had...