Samsung makes a folding case called the S-view cover. It has a window in the front, and a magnet in the closing flap. When closed the magnet turns on just the clock display which shows through window.
The magnet in the holder is activating S-View mode.
Check settings under My Device ->...