Understanding their core purpose helps when writing a nonprofit mission statement.