Google does not automatically penalise duplicate content, but it has to choose which version to show, and it is not always the right one. Rankings are then diluted across several pages.
Common causes: versions with and without “www”, URL parameters, product descriptions copied from the supplier, printable pages. The canonical tag and redirects handle most cases.