Why was the rush-bagot treaty formed?

It was formed to limit the naval forces of the Great Lakes and Lake Champlain. It also helped the U.S. and Great Britain recover from the war of 1812.