Jesus expects His Bride (the church) to be pure, just as a young man expects his fiancée to be pure. Jesus gives instructions on how the church is to remain holy.
Since sin is the worst thing we can choose. Jesus gives us instructions on how to deal with sin as individuals and as a church. Without dealing with sin we cannot have a healthy relationship with a holy God.