Buddha did not know every thing in the world!
We all can have only one thought moment at a time.
Even Buddha will have only one thought (pay attention) moment at a time.
So Buddha will know something only if he pay attention to it.
Buddha is a super human but he is not a superman.