How Market Ecology Explains Market Malfunction