Another reason is the messaging between airlines. Frequently you will see many codeshares where one carrier (usually the marketing) has all classes open and the operating carrier is shut down in various classes. There is a delay between when the operating carrier shuts down a class and when the marketing carrier gets the message and implements it.