This is due to how the game tracks player position. With thin barriers like this one, if you're going fast enough, the game will only see you as being on one side of the barrier on a given 'tic' (a term for how the game's logic runs, 35 tics a second), and then the other on the next, letting you go through it unharmed.