John testified Jesus was the one to come, but he thought Jesus was coming with wrath, and asked who warned them to escape the coming wrath. Then Jesus came and forgave and healed people, so John sent some to ask Jesus if He was the one to come… doubting his own testimony.