(Actually, Jesus was not baptizing people. His disciples were.)
Jesus and his disciples had been invited too.
Later, Jesus and his disciples went to the Judean countryside, where he spent some time with them and baptized people.
So they went to John and asked him, “Rabbi, do you remember the man you spoke so favorably about when he was with you on the other side of the Jordan River? Well, he’s baptizing, and everyone is going to him!”
So Peter ordered that they should be baptized in the name of Jesus Christ. Then they asked Peter to stay with them for several days.