Most (onchain and offchain) prediction markets work on an orderbook model.
Market makers sit on the orderbook based on news/their own predictions to make the market liquid/allow retail to buy.
Over time, as news comes out the market moves in one direction or the other.
Post the event, the outcome is gathered from a source (oracle/binance) to finalise the decision.

