In the movie, I believe it was because he was first hurt by one of his own weapon designs. And second he found his weapons were making their way into the hands of terrorists.
A distant third answer was because of Pepper Potts. But i think the first two are why.