Everything he mentioned is the result of many people working together. No hospital or electricity network were built by one person.
Capitalism is a great way to have people work in collaboration while still being motivated by their own individual goals.