The treaty of Ghent didn't set the terms for peace, but rather, committed that to a treaty which would settle the border. Jackson's victory was crucial to setting the stage for a negotiation that would remove the British from the American West.
Thanks for your clarification.