The w3-container class adds 16px left and right padding to its content and moves headers and paragraph margins inside the container.
The same content.
Compare the distance between the text and the edges of the two gray areas.