Mattot/Massei and God’s Righteous Judgment

Why God’s commandments are always righteous