White has one pawn, on c4. Black has one knight, on d5.
The pawn attacks the knight, diagonally forward, which is the only way a pawn can.
So the knight has one attacker. Count them every time, even when the answer is one.
Now the defenders. Is any black piece guarding d5?
The king on e8 is four squares away. There is nothing else left. Zero.
One attacker, zero defenders. That knight is hanging.
So White simply takes it. The pawn on c4 captures on d5.
A pawn has taken a knight, and Black gets nothing back for it.
That is the whole rule. Attacked at all, defended by nobody, and it is free.
This is the pattern that decides more games than any other, on the emptiest board it fits on.