We get the benefit of hindsight and slow motion replay.
But in real time, Ref obviously thought it was a high stick. But probably realized it was the puck that hit the guy in the face (after talking with other ref/linesman). Then made that $&!#ty call of slashing. Also Refs probably wanted to even up the calls (game management) too.
Not fair but we won.