That's a overly broad and false statement - I am optimizing for the environment. Additionally unbridled greed isn't really the best way to run a society, government regulations are supposed to account for this by promoting a societal goal when it is misaligned with personal goals.
It's everyone's personal goal to not get murdered, and it's society's goal to minimize murders... but, from a personal perspective, being the murderer would probably be beneficial in a number of metrics. Viewing everything through an individualistic lens is pretty weird when we live as a society.