"Purity of heart" shouldn't be confused with outward appearance or the keeping of rituals and rules. The Pharisees had made "purity" into a religious performance that had no connection to their heart.