World could not contain the books
Here’s what it means
Jesus did far more than John could record, and the full significance of His works is beyond ordinary documentation.
Why the Bible says it this way
The writer deliberately uses very strong language to make an important point. The point is serious even though the wording is not meant literally.
A helpful detail: The closing overstatement magnifies abundance; it is not a calculation of global library capacity.