Doing what needs to be done is a bit different from laboring (and causing others to labor) on the day of rest.
And yet Jesus was still condemned for telling the man to take up his bed and walk and breaking the Sabbath. Go figure.