Jesus did not need to repent because he had never sinned.
He said John should baptize him because it was the right thing to do.