How do people who work for charities earn money?

Well aren’t charities non-profit organizations for the most part? So how does an individual who dedicates their time to charity earn money to pay the rent, the bills, and for groceries?