Canada, Australia, and New Zealand gained independence peacefully because the British had learned from their experience in the American Revolution.
The American Revolution wasn't necessary--it could have been avoided but for British arrogance. But we are better off for it--it inspired some fruitful thinking about how countries should be governed by the likes of Thomas Jefferson, John Adams, and James Madison, and we have been the beneficiaries ever since.