The Pharisees were too strict with regards to the law, even stricter than God which, of course, meant they weren’t really following the law.
Well, the law said no work on the Sabbath, but works of mercy were implied as being OK.
So now Jesus heals on the sabbath and this is cynically called a work by the Pharisees.

