A rival isn't the same thing as an enemy. Rivals are equals that compete for the same goal (e.g a championship). They do not have to compete head-to-head.

For example, academic rivals compete in the classroom to have a better GPA, business rivals compete to win more customers and sales, etc.