Why the US loses wars

The US is the most powerful nation in world history, but has mainly lost wars since World War II. How can we explain this dichotomy between unparalleled military advantage and military defeat?