How shareholders earn money from the products of company?

A corporate executive who devotes any money for any general social.