As you can clearly see, there is no mention of "friend" or "enemy". Just a competitor. Besides, all Rivals are not friendly, nor are all rivals particularly enemies to the player.
Also, Rival is a cool and apt term for the role played by the player's rival:
- To beat the player at catching more Pokemon
- To defeat the player in all the battles
And thus, despite being friends, they are referred to as rivals.