The Lord is contrasting true righteousness with hypocrisy - or even, fleshly righteousness.
True righteousness consists of keeping things between you and God, inasmuch as you can, and as far as it is good to, whilst fleeing from requiring or wanting the praise of men.
What He is doing here is...