Could be matter of a poorly designed home. If the thermostat is in a room that cools down quickly and stays that way, it could simply be a matter of the rest of the house never getting to the desired temp, but the cold dark hallway that the thermostat is located in does get to that temp and then shuts the AC off.