Layers are flattened to combine them into one artwork. A Photoshop document is made up of multiple layers. Layers are like transparent pages that are used to hold different elements and effects that make up an artwork. when you are finished working on the artwork you can choose to flatten them. Flattening them will give a smaller file. You can flatten when the whole project is finished or when certain steps are finished.