Moses was very old - 120 years - during that time. He knew he was going to die because God had told him it would happen. Therefore, before he died, he gave a blessing to all the twelve tribes of Israel.