More correctly we are looking at a bacterial immune system ~ and it works pretty much like ours.
The guys trying to stretch this into evidence of "evolution" are the same guys trying to revise the word to mean "change", as in "evolution your tire when it goes flat", or "evolution your underwear at least once a month", or "evolution your bed".