Polymarket can market-make, but so can you (i.e be on the both sides of the order book). You can't do that in a casino for instance.
They don't control which side wins (UMA voters do). You should read up about prediction markets and in general sport gambling. Sport gambling platforms with a "house" usually derive their odds from pvp markets. Polymarket is similar to a classic order book market.