Off course capitalism doesn't care. It is a system of production and investment. System doesn't care, people care. People decide what system to use to make sure society is taken care of. Capitalism connects capital with humans who have ideas what to produce. It supplies money on individual (person or company) basis to produce goods. If you produce goods that society want you will be rewarded with more capital and individual success, if you produce what people don't want you will be bankrupt. It rewards risk taking-entrepreneurial individuals with monetary reward or punishes with monetary loss. It is proven by many centuries and many countries that this is a best production system in the world. The more goods and services system produces the better off is society, the more peaceful it is, the more tolerant and inclusive. The more goods produced the richer the society, the richer the society the more they buy, the more they buy companies make more money and invest in bigger production, the more they produce the more all society get richer, etc.
Compare early 18th century West to 21st century one. Compare communist China with capitalist China. Look at countries without capitalism like Cuba, N Korea, Zimbabwe. Do you see differences, to you see trends?
Capitalism stands behind success of Western world, and not only, in our standard of living, health, democracy, technology, equality, freedoms, peace, etc, list is very long.