God knows everything, but this does not eliminate man’s responsibility to confess his sins. Failure to do so forfeits God’s practical forgiveness.
There are two categories of sin: sins against God and sins against man. By default, every sin is against God. Yet, not all sin is against man.