Answer :
The U.S were fighting in WW1 along with their allies all because of German submarine warfare. the release of cables attributed to the Germans encouraging Mexico to attack the U.S also the success of AntiGerman propaganda.
Well, Germany was considered our enemy because of their submarines/U-boats were sinking American vessels. Germany also encouraged Mexico to attack the Americans through notes called the Zimmerman notes. Hopefully this helps.