In: Economics
Answer: There is a saying that ," There is enough for everyone's need but not for greed" means there are enough means available to fulfill our necessary requirements but when we starts stockpiling things, capital, start excessive exploitation of resources then things become less for us as well as futyre generation.
Hence as mentioned in the question that goal of maximizing the value of the stock conflict with other goals, such as avoiding unethical or illegal behaviour.
We can understand this by taking example of recent example i.e. during pandemic covid -19 when most of the countries started implementation of complete or partial lockdown then demand of many things which were necessary from the safety point of view like MASKS, SANITIZER, GLOVES and many other household things like grains, vegetables, preserved foods, packaged foods etc , suddenly reached at the peak. Although many governments and authorities conveyed that there is no need to stockpile those things as they'll ensure supply will not be restricted for public. Despite this people started stockpiling these things and such action restricted such things from reaching the more needy and unnecessarily created a black market for such things, which is illegal and unethical in nature.
Hence by these actions environment safety (as in case of more demand in market more masks and sanitizer's production started which ultimately harm the environment by excessive plastic generation etc) , consumers and employees safety get affected as consumers were willing to pay as much money as reatiler wanted due to unnecessary panic.In other words general good of society under such circumstances totally face ignorance.
Hnece goal of maximizing the value of the stock conflict with other goals, such as avoiding unethical or illegal behaviour.
Hope it helps.
Please do upvote!