The linesman didn't flag the incident when it happened because he didn't deem it a foul (the guy slid in and got the ball first). There was nothing for the ref to glance at, he just made the wrong call initially.
Good that the right decision was eventually made, but unfortunately it will...