Quest rewards do not scale with the number of players in the game. This allows joining players to re-earn gold and XP rewards by helping the game creator's quest. In co-op games, the quest stage is set by the creator of the game, so joining players that have progressed further will have their quest progress matched to that game.
Quests are challenges that usually progress the story of the game and are often met with rewards upon completion.