This technique, also known as planning poker, is a general agreement, a game-based technique for estimating the complexity and labor necessary to produce a software product.
The interest of Scrum Poker is that everyone can freely express what they think is appropriate so that they can cross-reference different sources of information and different opinions.
Planning poker is one tool used in agile. The reason it is useful is that it can help the team decide how many points to assign to a particular story or task. This helps facilitate endless discussions.
Many agile teams utilize affinity estimation to estimate a large number of user stories in narrative points fast and simply. This is a good method to use if a project is just getting started and the backlog hasn't been estimated yet, or if you're getting ready to schedule a release.