Afghanistan shares a large border with Iran and that makes the place useful for everything from ground sensor monitoring to incursion flights and ground activities.
Pakistan has become hostile to the activities of the US to monitor and possibly stop Iran from getting the bomb.
Obama may wish Iran gets the bomb but many others do not.
We ought to call it the Home Depot Strategy... "You can do it. We can help".