They don’t allow unlimited “extraction” of wealth. It is inherently limited by the need for people to take the other side of a trade.
Importantly, people who either thought they had better information (and were sadly wrong) or people who were simply gambling. It’s not like prediction markets are taking money from orphanages.