It costs money to do it, so you would have to legislate and enforce those requirements. A companies' leadership will never spend money on public good unless they are told they have to, so regulation is the only way to make it happen.
It's just like O&G industry. Norway and Denmark taxes and regulates the crap out of it, North America doesn't because "capitalism rules" (or is that corruption?).