The Sign of the Sabbath 3-12-17

Why would Jesus heal a man on the Sabbath and then tell the man (in violation of the Sabbath rules of the Pharisees) to pick up his mat and walk?