The US Department of Defense is there not to defend US soil, as you state, but rather to defend US interests. And US has plenty of interests (which have a meaningful effect on bulk of US citizens) that require action on the other side of the oceans - USA is getting quite a better deal in terms of international trade and the global flow of wealth than it would if it would be isolationist and just defend its soil.