After Israel took control of the central area east of the Jordan River, during the battles described in chapter 21, they began preparing to enter Canaan.
At that time, the Israelites needed to remain united. But two tribes asked for permission to settle on the east side of the Jordan River instead of crossing into Canaan.