Why do Pokemon catch you even if have max repel?
Max Repel doesn't guarantee preventing encounters of wild Pokemon; it increases the number of steps before encounters. The repel lasts approximately 250 steps on average depending on the player's Repel.