They used to (Might still do) use little reed switches, as most laptops do, on the lower part of the body. With a magnet in the upper part. So that when the lid is closed it knows it's closed.
As above pointed out, it'll be because of the NFC magnetic field.
I'm more curious what you were doing to find this out?