I've noticed this feature too. I've also noticed it happens right when a Pokemon is about to break out of the ball. I guess game freak added it for 1 extra second of dramatic tension so that you feel disappointed after three shakes.
What this means is that this is just some added effect, not something that actually affects catch rate, but catch rate affects it.