Every bet earns XP. The players with the most XP when the race ends share the prize pool, and a new race starts right after.