In the Harry Potter movies, when they are playing Quidditch you can see that there is only one Quaffle, but when one team throws the Quaffle into the other net you see it go through the hole and off a long way, far away from the Quidditch court. But then a second later you see someone on the team pass the Quaffle to a team-mate. How did they get the Quaffle back so quickly after they threw it so far away from the field? I doubt that magic can do that.
According to "Quidditch through the Ages" modern quaffles are bewitched to remain in the air if dropped. Presumably it would be trivially simply to also include an enchantment keeps the quaffle within the field of play and/or return to the referee if thrown through a hoop.
Note that in The Philosopher's Stone, a player was evidently able to use this auto-return feature to an extreme advantage.
There's also the slim possibility that Hogwarts Quidditch matches operate on the same principle as professional matches, with match officials set around the perimeter to return the balls:
By some camera cuts between scenes, I would assume.
When you're watching a film, often things don't happen on-screen at the same pace as they would really be happening. Don't assume that because one scene appears on the screen a second after another, things must necessarily be happening that quickly in-universe.
Nobody wants to sit and wait for the Quaffle to be recovered (perhaps by ground staff, as @Richard suggested in comments) and returned to the pitch for the players to reclaim. If you were a Hogwarts student watching a Quidditch match in real life, you'd have to do that waiting, but at least you're outdoors, surrounded by friends, and can talk to people or cheer for your team while you're waiting. If you're sitting indoors and watching a film, then "ain't nobody got time for that", as they say.
Quidditch is already massively under-represented in the films compared to the books: many whole matches cut out entirely, and others cut down to the bare essentials of what's relevant to the story. Part of that cutting down to the bare essentials would involve not showing any boring bits where the Quaffle zooms away and is reclaimed and returned to the teams.