The whole point of VAR is the referee lets things play out, so it can be reviewed if needed. Hence why offsides don’t get called until the attacking phase reaches a natural conclusion (unless it’s a glaringly obvious offside)Ref can't see exactly where the ball is going and paid the foul.
The ref has since come out and admitted he made a mistake blowing the whistle so early.