You gain gold and in-game currency as you complete each race, which you can spend to upgrade and unlock new motorcycles.