Firms Often Involve Themselves In Projects That Do Not Result Directly In Profit

firms often involve themselves in projects that do not result directly in profit, for example by sponsorship of sporting events of the opera or other entertainment. do these projects contradict the goal of maximization of shareholder wealth? why or why not?