She technically wasn’t voted out, though that is what was going to happen.
Sometimes poetic license works well, creating a parallel between her death and the death of the ideology she espoused.
But, yeah, you’re right. The day she stepped down as prime minister was a wonderful day… we were literally dancing in the streets.