Those who Jesus spent his time with were the very ones the Pharisees sought to avoid. It’s easy to pass judgment on the religious leaders of Jesus’ day, thinking we would never act as repulsively as them.
Jesus did heal the physically ill, but ultimately he came to heal the spiritually ill. Jesus performed miracles on the sick to symbolize how he alone is able to perform a miracle on the sinful. The mission field for all of us, if we are followers of Jesus, is not ultimately the physically sick, but the spiritually sinful.