While she didn’t leave the show, one of the reasons for its ending was so that Cosgrove could attend college.