it is a riddle): White did not lose the game of chess (which is impossible in the diagram position, as the only legal moves are 1.g7+ Qxg7+ 2.hxg7#), but rather the bet.
The riddle states that white did not lose the game of chess but rather the bet. The position is a checkmate scenario.