Dear this is what called Corporate Social Responsibilities. There are two assumptions. First, if suppose local community belongs to that company, then its social duty of the company to provide these facilities to that community members. Second if suppose that community does't belong to company then company can do whatever it can do. For example, sometimes, government is not in such a position to provide all kinds of facilities to the community members. We know that customers always demand some kind of social responsibility from the companies because they are earning a lot from them. This is my understanding.