1. the game is a little generous with charged melee range, especially when both of you are moving. you can blame latency bias for that, the same way it's biased in favor of last hits over denies.
2. your friend moved in after the hit connected. the melee action is resolved at that point and there's nothing left to parry