Black's king is on the edge and White's king stands two squares in front of it, on the same file: the kings face each other with one empty square between them. White's king covers d7, e7 and f7, so Ra8# only has to check along the back rank, which also covers d8 and f8.
What to notice
The rook gives check from far away, where the king cannot reach it. The tempting Re1? is not even check, because White's own king blocks the e-file, and Ra7? gives no check either: Black answers Kd8 or Kf8 and the kings no longer face each other.