It benefits because most of its adversaries are largely constrained and less threatening than they used to be. North Korea is a pariah. Syria is on the ropes. Hugo Chávez is not well liked and is ailing. Fidel Castro is a has-been. Saddam Hussein and Osama bin Laden are dead. The Soviet Union is gone.
Those are tectonic shifts in world politics that we rarely appreciate in full. America also possesses a military that is far ahead of its rivals, allowing the US to operate at great distances in unique ways. Difficulties in Iraq and Afghanistan are not a commentary on US military capability, but on strategy and the challenges of nation-building.