Edwin Starr, the singer of these lyrics, repeats the word war and the question, "what is it good for" almost a dozen times.
The reason is for emphasis; the name of the literary device is
O a
repetition
Ob
symbolism
hyperbole
Od
connotation