But Er was not a good man, he kept on doing evil things. Yahweh did not like what he was doing and so he killed him.