More importantly, they were wars on the other side of the planet, that the USA could decide to give up on, and simply pack up and leave.
That is not at all equivalent to losing a war with a peer power next door, who then demands territorial concessions as a condition of peace.