It's a reversion dam.

Prevents the air from traveling back into the cylinder.

Exhaust/inlet flow aren't steady. They cycle. Makes things more complicated.