Depends on whether Apple PR organized that profile of her or whether she did herself. If she was planning on leaving she'd want to go out with her accomplishments highlighted.
I'd imagine the interview was organised by Apple PR, but the decision to fire her was being discussed & made shortly after (because Apple PR wouldn't know of or be involved in a decision that big regardless).
Or quite simply deciding she wasn't good in her current role doesn't mean Apple want to burn her career to the ground. This sort of PR piece could easily have been a helping hand to find her her next job.