Giving money to charity because, say, “we feel sad about the state of the world” might be a nice thing to do, but the action has no moral worth. It only has moral worth if we’re adhering to a maxim—perhaps “When we are able, we ought to help those less fortunate”—that we can imagine everyone in the world following.