In Matthew 23 Jesus condemns the religious attitude of the Pharisees. They don’t practice what they preach. They make it all about following the rules rather than having a personal relationship with God. They only care about what the public things, and not what God thinks. For them it was all about status, rather than submitting to God and humbly serving other people. Jesus hated religion, for him it was all about relationship with God and with people.