God knows everything, but this does not eliminate man’s responsibility to confess his sins. Failure to do so forfeits God’s practical forgiveness.
The Bible does not always paint man in a positive light, yet it always paints him accurately. According to scripture, there is no man that sinneth not.