When a project you rely on dies, what then? Also it sets the culture of a company before it becomes large, which can help with recruiting (the people you want to work for you might be the type to be driven by said altruism and it could be a pipeline to talent). Also those who donate get better support and recognition by the community. Also when asking the developer of the project for something they would be more likely to listen.