Each level has three reward tiers. Depending on whether quests are involved, you might need to complete the level between one and three times. The next world will unlock when you've beaten the first tier for each level.
For example, on level 5 you'll receive ten gold for winning the first reward tier and a pineapple for beating the second.