That's idiotic. Companies most certainly DO NOT exist "to produce profits".
Companies exist to make products or provide services. Profits are a side-effect that act as an incentive for people to form companies to provide products or services. The raison d'etre of a company is to PRODUCE something - the profits from efficient overproduction are just encouragement for those with the means to produce something of value to the rest of us.
That's silly, most investors would be perfectly happy with a company that made absolutely no products and provided no services as long as it was making an adequate return. Yes, as a society the reason we allow such activity is that it's generally beneficial to the rest of us but that's the side effect not the profits.
Can I have the secret for a company that doesn't provide any services, nor make anything to sell and still have a profit?