Um, there is the board that determines which hand will win too, ya know. Otherwise it'd be a pretty boring game.

From a statistical standpoint, when you have something like 88 vs. AK and it's all in preflop, the 8's are about a 55% favorite. And your two situations seem pretty standard, so nhs, and better luck next time I suppose.