Because Leonidas might as well murder him himself if he agrees to that. Your suggestion seems to be based on some kind of meta-hindsight that Leonidas should've let this unqualified soldier die so he wouldn't betray him later in the movie. I know Ephialtes wants to die in battle, but why would Leonidas want him to die…