I don't think you messed up by taking the pawn...although your opponent blundered like a second grader, good finish.
Why did white win this endgame?

nice endgame hithere2, you won because black didn't move in the right order
on the first move Rxh2 g1=Q ! the game still even

I don't think you messed up by taking the pawn...although your opponent blundered like a second grader, good finish.
I think that's offensive towards second graders.

1. bondiggity makes a great point: you missed a tactical shot on move 3 that would have "won" the game for you.
2. You were grossly behind on material, down a Rook, but your opponent made two fundamental endgame mistakes:
A. Misuse of his Rook
B. Misuse of his King
Your opponent didn't bring his King into the game until very late. Your 2 pawns + King = 5 points and his Rook + pawn = 6 points, so by not using his King, you weren't actually down that much material.
I'm just confused by the following game. Why did I win? Where did we both screw up?