Levi had to choose you or his Commander Erwin because he had titan serum. He gave ut to you and ate Bertold. Now you'll be new Commander of Survey Corps because you're smart like Erwin was.