There's a reason I'm not an anarcho-capitalist. However, government influence has a lot to do with why corporations do this stuff. Antidiscrimination laws result in a lot of lawsuits
Organic free range stuff has a lot more to do with the quality of the product. Even corporate charitable giving is plausibly apolitical enough in general. Explicitly favoring one side like this is new, and it's not because consumers have shifted that much.