@Ryan Duncan the idea is that, to get there the pawn is counted as having moved through the square where the capture happens, it's like the idea for when you want to castle and the squares where the king moves through shouldn't be targeted by the opponent