I see two possible reasons for this, and they are not necessarily mutually exclusive.
1. On the (primary) basis of Medal Count, the game's algorithm determines that Player X should attack Player Y where Player Y is the same (again).
2. When Player X attacks Players Y, as the defender Player Y is given the option to strike back by clicking on the 'Revenge' button.