There's not a legal requirement, but generally people are investing because of the expected returns. That creates a competitive requirement, with people investing most in the most profitable companies. The pressure towards maximizing profit is systemic.