That pie you bought at the store most likely has preservatives added to make it shelf-stable and that's why it doesn't have to be refrigerated.