Because you played with it in Amie.
Amie effects in battle:
- introduces a chance of breaking out of status moves
- raises evasion
- introduces a chance of surviving with 1 HP left
- Pokemon will turn to look at you just as it enters battle
It happens with all Pokemon who have high/max affection in Amie.