It is more like world’s fireman. These actions are necessary because the fires will spread burning down your house as well.
Do you seriously believe that had we not invaded Afghanistan everything would be hunky-dory?
When we stay out of faraway turmoils, it forces local powers to take on the burden of maintaining stability.