Companies have those obligations, and others too. We all have many obligations, including to our communities/society. If most businesses didn't meet those other obligations for the last several hundred years, there would be no community, no market, no technology, and nobody rich enough to buy epipens. You'll notice that most companies are responsible members of their communities to some extent, but there are a few leaches of course who live off everyone else's contributions.