A knight in the middle of the board reaches eight squares. This one, in the corner, reaches exactly two: b6 and c7.
And the black knight on e8 covers c7, while the pawn on a7 is one of the reasons it went to the corner in the first place.
That is what being trapped means. Not that a piece is attacked, but that every square it could run to is covered or occupied.
Which means there is no rush. Once a piece has nowhere to run, you can walk something over at your leisure and take it.
And notice where it happened. A piece on the edge has half the escape squares of one in the middle, and a corner has a quarter.
Here is the same thing with a bishop. The one on h1 has exactly one diagonal, and its own pawn on g2 is standing on it.
Zero legal moves, and a black rook on h8 already looking down the file at it.
So the check is a count. How many squares can this piece actually reach, and how many of them are safe?
The white knight on a8 is not attacked by anything at all. It is also, in the way that matters, already lost.