Butler's experience was from the period when the United Fruit Company more or less ruled Central America.[1] At times U.S Marines were used to enforce US authority, and Butler was a leader in some of those operations. That's why he says war is a racket.
[1] https://en.wikipedia.org/wiki/United_Fruit_Company