Arizona Robbins (character) did not leave Grey's Anatomy—the actress Jessica Capshaw departed the series in 2018 after ten seasons.
The character's exit was written as moving to New York for a fellowship and to co-parent with Callie (Sara Ramirez, who had left earlier). Capshaw's departure was a creative/production decision, not a character death.