Why did Nicola Sturgeon resign?

Why did Nicola Sturgeon resign?