Jesus Christ is our example in all things. Though He was perfect, He was still baptized, to show us all that we should do likewise. If we follow the path that He has laid down, we can be with Him one day.
31:20 Wherefore, ye must press forward with a steadfastness in Christ, having a perfect brightness of hope, and a love of God and of all men. Wherefore, if ye shall press forward, feasting upon the word of Christ, and endure to the end, behold, thus saith the Father: Ye shall have eternal life.