Why is the threat of American expansion into British North America a factor confederation?

The premise is incorrect.

American expansion was a factor in the discussion but not the threat. The fear of American aggression played a significant role in leading to the Confederation, as the British colonies in North America were concerned about the possibility of American invasion.

Copyright Wanderlust World © https://www.ynyoo.com