I think it's the ratings compared to other shows that are currently playing. If they aren't high enough they will cancel a show and bring in a new one that hopefully brings the network's rating up. It's a competitive market for them to find the next best show everyone is watching.