Napoleon had been fighting this army of slaves and free people in Haiti and it depleted his forces. And after the Revolution, when the French were driven out, they stopped and sold this big chunk of North America to the Americans for very little money.
I have just returned from Boston. It is the only thing to do if you find yourself up there.