Peter compares his readers' actions before they had believed in Christ to the way lost sheep wander away from their shepherd. (See: [[rc://en/ta/man/translate/figs-simile]])
Peter speaks of Jesus as if he were a shepherd. Just as a shepherd protects his sheep, Jesus protects those who trust in him. (See: [[rc://en/ta/man/translate/figs-metaphor]])