Why can you kill non existent pieces with a pawn

Sort:
0_0fficer

I lost to sensei bot only because he killed a piece to the side of his pawn and checkmated me. I also did the same with Jimmy bot. Please help.

Martin_Stahl
0_0fficer wrote:

I lost to sensei bot only because he killed a piece to the side of his pawn and checkmated me. I also did the same with Jimmy bot. Please help.

You mean en passant?

https://support.chess.com/en/articles/8557558-what-is-en-passant-it-s-not-an-illegal-pawn-move