Yes, he could exit those countries hastily. But that has its own cost. Getting in wars is the easy part. Getting out of one is the hard part. Ask Putin who went into Ukraine on a 3-day limited special military operation.
Bush Jr. got us into multiple wars and unlike his father did not limit the scope of them. His father did get us into a war with Iraq but was smart enough to keep it limited in scope.
Also, under Obama, the "wars" were not real wars like the Russia/Ukraine war where both sides are losing hundreds of people every week. But they were more like peacekeeping operations that occasionally ran into skirmishes.
Of course it's hard, but if that's true, then why is he making those promises, or worse, why is he being given a peace award based on those promises?