a) Help give future generations a reasonably livable and enjoyable planet. b) Help Americans by creating jobs.
I mean you can also say all code written by developers for for-profit companies exists to create revenue.
Both are true yet incomplete statements.