Duplicates are common: sorting or tracking parameters in the URL, versions with or without a trailing slash, products reachable from several categories.
The canonical tag prevents these variants from competing with each other and consolidates their signals on a single URL. It is a hint: Google may choose another version if it considers the hint inconsistent.