Complex, but it boils down to they were overstretched. The British empire was huge, and it was a huge drain on the homeland to control it. They couldn't afford it after fighting Europe's wars. Moreover, the colonies became disenchanted after being asked to fight a European war they had no stake in for no payoff.