Jesus is the epitome of the righteous example in all things. He set us an example to follow with regard to the process of our conversion as well. Though He committed no sins to be remitted, He was baptized, setting the example for us. Matthew 3:13-17 describes the account of His baptism by John the Baptizer.
In being baptized, Jesus was immersed in water (not sprinkled or poured upon). We know from the Gospel account that,
So, He came up out of the water because He was under the water, so that His sins would be symbolically washed away, not His sins but our sins because He was only symbolically doing it to show us an example. He had no sin to be washed away.