Producing a return doesn’t imply maximizing that return. Short-term profit maximization may actually be detrimental to long-term success. People also buy stocks because they believe in what the company does in terms of meaningfulness, and that meaningfulness tends to decline when trying to maximize profits.