It turns off because just that, it's conserving energy. The AC will shut off one the temperature has reached a certain degree (in a state of cool). Once the temperature rises (meaning the room warms up) the AC will turn back on to cool the room.
This is a better alternative to keeping it running unnecessarily all the time.
This is a better alternative to keeping it running unnecessarily all the time.