In some ways, regulations help companies be the best version of themselves.
Absent external restrictions, the only obligation corporations have is to maximise profits for their shareholders. This won't always be the short-term priority (e.g. they may want to build market share instead), but the C-suite doesn't have free reign to just 'do the right thing'. If they leave too much money on the table, they'd likely be slung out by the board and told to be generous on their own dime.
Before environmental protection laws, it was hard for companies to justify not polluting; it's almost certainly cheaper to just dump waste in a river than dispose of it properly. But once it became illegal for them - and their competitors - to do so, investors obviously couldn't expect them to save costs in that way.
Similarly, if Apple is making a tidy profit from exploitative App Store terms, investors won't thank Cook for relaxing them (unless not doing so starts hurting Apple's brand, and ultimately sales). Apple is under pressure to maintain growth, which is difficult when you're already the world's richest company and lifespans of core products are lengthening. Opening up new markets is really hard (see: AVP), so the last thing you want to do is make your life even harder by giving up easy cash.