This is why you train in tactics!
It's funny I just finished tactics trainer and I saw the same tactic of one of the puzzles I did occured in game.
Even if he didn't blunder the tactic I used caused him to lose his castling rights and a pawn. All because I did tactics trainer