Individuals can and do make non-financially motivated decisions. But in larger groups, especially a large corporation like J&J, you can apply the law of large numbers and determine that decisions are a result of incentives (primarily money).
Charitable donations and altruism are outside the scope of financial analysis.
You can donate time or money even if you are running a loss in real, nominal, or opportunity costs.