Iraq is a sovereign nation. The Coalition doesn’t own it and are simply guests of the Iraqi government in power. The same for Afghanistan.
I fully agree it is a sovereign nation. Just like Germany and Japan were after WW II. We stayed behind to ensure the peace and the maturation of democracy.
Vacating Iraq in 2011 seems hasty to me.