The GMR effect arises due to the alignment of magnetic moments in the ferromagnetic layers. When the magnetic moments are aligned parallel, the electrical resistance is low, allowing electrons to flow more easily. Conversely, when the moments are anti-parallel, the resistance is high, obstructing electron flow. This change in resistance can be exploited to read data in magnetic storage devices.