In multiple places in Scripture, the Messiah is portrayed as a shepherd. He is the one who rescues, leads, comforts, and cares for His sheep. He is the one who risks His life in order to grant and preserve their lives. Jesus was communicating with that kind of imagery in this passage. He was also demonstrating that He was set apart from less devoted leaders.