John the Baptist spoke because of two concerns:
Some people questioned whether his baptism was from God (see 1:26), and
his disciples were worried because many people were beginning to follow Jesus instead of John (3:26).