Because he needs an apprentice — and Anakin was the most powerful Jedi of his era, the prophesied Chosen One. Sidious had already invested years in turning him.
Had Vader died on Mustafar, Palpatine would have faced decades of searching for a replacement who could never match that raw potential. Saving him, ruined body and all, was the pragmatic choice.