We use infinitives of purpose to explain why we're doing something.

http://www.bbc.co.uk/learningenglish/english/course/towards-advanced/unit-6/session-1