Jesus came to be baptized by John in order to fulfill all righteousness. This is recorded in the Bible in Matthew 3:13-15, where it says that Jesus came from Galilee to the Jordan River to be baptized by John the Baptist. John initially objected, saying that he should be baptized by Jesus instead. But Jesus insisted, saying that it was necessary to fulfill all righteousness. By being baptized, Jesus was publicly identifying Himself with John's message of repentance and submission to God, and was setting an example for His followers to do the same. It was not because He needed to be forgiven of His sins, as He was sinless.