Why did British colonies in north america put aside their differences to make Canada?

Perhaps they wanted a united nation as a defense against the United States.