Being hungry and thirsty for righteousness is a spiritual hunger that is the opposite of self-righteousness. It speaks of those who seek God's righteousness rather than attempting to establish a righteousness of their own.