It is something of a miracle that individual selfish decisions (in a market economy) must lead to a collectively efficient outcome.