The 'Righteous' Are Self-Righteous
Commentators overwhelmingly agree that Jesus is not describing genuinely sinless people. Instead, He is using irony to address the self-righteous Pharisees and scribes. By referring to 'ninety-nine righteous persons who need no repentance,' He is using their own arrogant self-perception against them to justify His ministry to those who know they are sinners.