#Why should the Israelites go on a three-day journey into the wilderness and sacrifice to Yahweh their God ?

The Israelites should go on a three-day journey into the wilderness and sacrifice to Yahweh their God so that he does not attack them with plague or with the sword. [5:3]