WW1 was probably unnecessary, and fought because of a gung-ho attitude. WW2 had to be fought to put right the mess left behind by WW1, which allowed Hitler to gain power.
As for the rest of the wars since, some were necessary, others were a BIG mistake. I still can't make up my mind about our involvement in Syria