 This was White's only check which prevents the pawn from advancing, and Black responds 
repeating the position.If the white king is anywhere else (other than h7 and h8), the queen can pin the pawn and allow for the queen and then the king to approach .The biggest problem for a queen versus a pawn on the sixth rank is when its own king gets in the way.