Many of the activities we do are either purely physical (do enough "reps" and your muscles get stronger) or purely cognitive (encounter and understand a new concept). Practicing an instrument has to be a combination of the two. It's true that you won't get anywhere without actually doing the physical motions, and that it takes some repetition. But repeating the motions blindly, with no cognitive engagement, is at best inefficient and sometimes counterproductive. I call this the "Super Mario method"—run along, fall off the cliff, try again and hope for the best.
When you "mess up," chances are there's a reason. Figure out why and you have a better chance of doing something about it. Is it an awkward finger crossing? an extension? Is it conceptual, based on the way you're grouping the notes in your mind? Distracted by motion in the other hand? Something about the angle of wrist or elbow? Analyze your motions and thoughts and see if you can diagnose the mistakes. (Sometimes you can't, and that's ok.) Then once you have an explanation, you can make accommodations: Extend a bit more intentionally for an extension, prepare a finger crossing, etc.
Side note: We spend so much time staring at the sheet music that it's easy to think that those dots "are" the music, and to let even their visual shapes on the page shape our thinking. But try to think about the physical and auditory realities of making the music. Two dots might be next to each other on the page, and be executed by two neighboring fingers; two others might be just as close but involve a much bigger motion like a crossing or even change of hands. Look away from the dots once in a while to interrogate the actual mechanisms of music-making.