Markets are usually a good way to organize economic activity. Compare to a command/control economy where the government decides what to produce and who gets it. In a market, prices and self-interest, "The Invisible Hand", make decisions.