Referees are very good at picking up on player tendencies during the game. But that can be troublesome because you can create bias
The call was similar to the nba calls where officials wait to see if the ball goes in the hoop. If they miss then it must have been a foul.