With the idea of changing them.
“But the Pharisees and the teachers of the law who belonged to their sect complained to his disciples, ‘Why do you eat and drink with tax collectors and sinners?’ (italics mine)
Jesus answered them, ‘It is not the healthy who need a doctor, but the sick.’”
Luke 5:30-31, NIV
But churches exist that accept the sinners. I know because I go to one. It is arguable that in this we are not following Jesus. Yet in our hearts — where he finds us — we believe that we are.