It acts as a reliable intermediary between the site and Google Tag Manager: tags read the data it contains instead of extracting it, fragilely, from the page display.
On an e-commerce site, a complete data layer is the prerequisite for accurate tracking of sales and revenue.