“I knew that you always hear me, but I said this on account of the people standing around.”
Sometimes Jesus said things he didn’t need to say. Sometimes he asked questions to which he already knew the answer, or asked to be given things he didn’t require. Once, he even went through a baptism of repentance when he had nothing whatsoever for which to repent.
He had to, on account of the people standing around.