This is called an evolutionary arms race and tends to keep the populations of both species in equilibrium.
What is the purpose of an evolutionary arms race?
keep the populations of both species in equilibrium