More Righteous 8-18-24

Why would Jesus seemingly praise the Pharisees saying our righteousness should exceed theirs? Why would I need to compare my righteousness to that of men that Jesus despised?