Yahweh made a covenant with Phinehas because he was zealous for Yahweh and had atoned for the people of Israel.