Hidden items in games communicate to the player that their time spent going beyond the critical path is acknowledged and appreciated. Because the player has already committed to the world of the game, developers see secret items as an opportunity to reward players.
Source:https://www.cbr.com/video-game-hidden-items-worth-finding/