Question: why did iluvatar kill sauron?
Answer: When Sauron created the One Ring, he was basically calling himself “God”. Thus, Eru used mere halflings, the smallest, least powerful race in Middle Earth, to destroy Sauron's pride. And even Frodo and Sam couldn't be proud, for when the time came Frodo claimed the Ring for himself.