Remember it said John gave witness (John 1:15), so he was talking about Jesus in publlic. And the leaders, priests, levites, pharasees, wanted to know why he was preaching in public and what he was about. They thought he might be the savior, but he wasn't. He told them he was the one to prepare the way for Jesus, to tell people to get ready, the savior is coming.