You have ace-king and he has a pair of queens. He wins 57 times in 100, so he is the favorite.
An ace comes and you're now way ahead. You did nothing to deserve it.
You won a pot you were behind in. It counts the same on the scoreboard as a pot you played perfectly, and that's why short-term results fool people.