Shift the whole picture one file inward and nothing changes. Rg5 again cuts the black king off from the fifth rank, and the pawn has to run on its own.