The US occupied Iraq for over a decade, and installed a new government. The US spent a little time in the Balkans and Somalia and then gave up. There's a difference.
A similar difference to the one that motivated its even longer occupation of the oil-less Afghanistan.