If you read the rest of the passage you will find that Christ is admonishing them for abusing a specific tradition. That is they pledge their goods to the temple (tradition) to avoid having to care for their parents (commandment). Christ was not deriding traditions in toto.
Only those that are contrary to God's Word!