To prevent Iran from developing nuclear weapons. I get America-bad or whatever, but even the IAEA has made many statements that Iran has not been compliant for years, is fabricating and outright omitting data, does not permit previously agreed upon inspections, and is stockpiling materials to make nuclear bombs.
Now, is that really the reason we got involve? Israel struck first. So probably not. But it is definitely a reason, and a valid one at that. Any way one slices it, a fundamentalist religious state should never be allowed to have nuclear weapons. The world is bad enough as it is with the fundamentalist religious who do have them already.