It's defined Corporate Social Responsibility (CSR) which broadly refers to the work and activities undertaken by corporates towards issues related to social causes and development, environment, disaster relief and community support. The Corporate Social Responsibility was made mandatory for companies in India by an Act in the year 2013.
However it's true that most companies only match numbers and do nothing useful.